dtarima opened a new pull request #33251:
URL: https://github.com/apache/spark/pull/33251


   ### What changes were proposed in this pull request?
   
   There was a regression since Spark started storing large remote files on 
disk (https://issues.apache.org/jira/browse/SPARK-22062). In 2018 a refactoring 
introduced a hidden reference preventing the auto-deletion of the files 
(https://github.com/apache/spark/commit/a97001d21757ae214c86371141bd78a376200f66#diff-42a673b8fa5f2b999371dc97a5de7ebd2c2ec19447353d39efb7e8ebc012fe32L1677).
 Since then all underlying files of DownloadFile instances are kept on disk for 
the duration of the Spark application which sometimes results in "no space 
left" errors.
   
   ### Why are the changes needed?
   
   Long-running Spark applications require freeing resources when they are not 
needed anymore, and iterative algorithms could use all the disk space quickly 
too.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   
   Added a test in BlockManagerSuite and tested manually.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to