-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-19542][SS]Delete the temp checkpoint if a query is stopped without errors #16880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #72680 has finished for PR 16880 at commit
|
|
Test build #72682 has finished for PR 16880 at commit
|
| val fs = checkpointPath.getFileSystem(sparkSession.sessionState.newHadoopConf()) | ||
| fs.delete(checkpointPath, true) | ||
| } catch { | ||
| case e: IOException => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, but can we get any other exception here? It could be bad if it bubbles up to an uncaught exception handler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I changed it to NonFatal.
|
LGTM. I left one question, but then checked and found the answer. |
|
Test build #72721 has finished for PR 16880 at commit
|
|
LGTM! Merging to master and 2.1. |
…thout errors ## What changes were proposed in this pull request? When a query uses a temp checkpoint dir, it's better to delete it if it's stopped without errors. ## How was this patch tested? New unit tests. Author: Shixiong Zhu <[email protected]> Closes #16880 from zsxwing/delete-temp-checkpoint. (cherry picked from commit 3dbff9b) Signed-off-by: Burak Yavuz <[email protected]>
…thout errors ## What changes were proposed in this pull request? When a query uses a temp checkpoint dir, it's better to delete it if it's stopped without errors. ## How was this patch tested? New unit tests. Author: Shixiong Zhu <[email protected]> Closes apache#16880 from zsxwing/delete-temp-checkpoint.
What changes were proposed in this pull request?
When a query uses a temp checkpoint dir, it's better to delete it if it's stopped without errors.
How was this patch tested?
New unit tests.