stczwd opened a new pull request #28129: [SPARK-31346][SQL]Add new 
configuration to make sure temporary directory cleaned
URL: https://github.com/apache/spark/pull/28129
 
 
   ### Why are the changes needed?
   In InsertIntoHiveTable and InsertIntoHiveDirCommand, we use 
deleteExternalTmpPath to clean temporary directories after Job committed and 
cancel deleteOnExit if succeeded. 
   But sometimes (e.g., when speculative task is enabled), temporary 
directories may be left uncleaned. This is happened if there are still some 
tasks running after we called deleteExternalTmpPath. Thus it maybe necessary to 
keep deleteOnExit, even if temporary directory has already deleted, to make 
sure the temporary directories cleaned.
   
   ### How was this patch tested?
   run tests
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to