You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-17547] Ensure temp shuffle data file is cleaned up after error
SPARK-8029 (apache#9610) modified shuffle writers to first stage their data to a temporary file in the same directory as the final destination file and then to atomically rename this temporary file at the end of the write job. However, this change introduced the potential for the temporary output file to be leaked if an exception occurs during the write because the shuffle writers' existing error cleanup code doesn't handle deletion of the temp file.
This patch avoids this potential cause of disk-space leaks by adding `finally` blocks to ensure that temp files are always deleted if they haven't been renamed.
Author: Josh Rosen <[email protected]>
Closesapache#15104 from JoshRosen/cleanup-tmp-data-file-in-shuffle-writer.
(cherry picked from commit 5b8f737)
Signed-off-by: Josh Rosen <[email protected]>
(cherry picked from commit 8646b84)
0 commit comments