hubgeter opened a new pull request, #34243:
URL: https://github.com/apache/doris/pull/34243

   ## Proposed changes
   
   sql:
   ```
   select * from outfile_exception_test t ORDER BY user_id
   into outfile "s3://test-outfile-exception-no-exists/test_outfile/exp_"
   format as orc
   properties(
       "s3.endpoint" = "xxxxxxxx",
       "s3.region" = "xxxx",
       "s3.access_key"= "xx",
       "s3.secret_key" = "xxx"
   );
   ```
   
   When the sql is executed normally, the close() function of 
`VOrcOutputStream` will be called first, and then the destructor will be 
called. If there is a problem with SQL, the close function will throw an 
exception to return the error to the user. If the task is canceled, the 
destructor will be called directly, and then the close() function will be 
executed, causing the system to hang.
   
   
   <!--Describe your changes.-->
   
   Since close() writes to the log file, I just need to catch the exception in 
the destructor.
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to