-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9801][Streaming]Check if file exists before deleting temporary files. #8082
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
Spark streaming deletes the temp file and backup files without checking if they exist or not
|
Please set the PR title as the problem or fix this PR has. Something like "Check if file exists before deleting temporary files." |
|
LGTM. Will merge when tests pass and after you update the title. |
|
This is ok to test |
|
Done changing the title. |
|
Hi Team, I forgot to add one check, I wanted to add the check for backup file also: |
|
Hi Team, I just added another commit to this PR. |
|
Test build #1424 has finished for PR 8082 at commit
|
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 am not if this is necessary. These files that are being deleted came from a recent listing, so they are very very likely to exist.
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 agreed and I just made the change. Can you start another build and test?
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.
Actually from the error message in Spark-9801, the only 2 checks I wanted to add were:
tempFile
backupFile
So I am fine to ignore the check for "file". Also for performance consideration.
|
Test build #1425 has finished for PR 8082 at commit
|
|
Test build #40347 has finished for PR 8082 at commit
|
|
All right, test on the latest commit has passed. I am merging this to master and branch 1.5. Thanks! |
…ry files. Spark streaming deletes the temp file and backup files without checking if they exist or not Author: Hao Zhu <[email protected]> Closes #8082 from viadea/master and squashes the following commits: 242d05f [Hao Zhu] [SPARK-9801][Streaming]No need to check the existence of those files fd143f2 [Hao Zhu] [SPARK-9801][Streaming]Check if backupFile exists before deleting backupFile files. 087daf0 [Hao Zhu] SPARK-9801 (cherry picked from commit 3c9802d) Signed-off-by: Tathagata Das <[email protected]>
…ry files. Spark streaming deletes the temp file and backup files without checking if they exist or not Author: Hao Zhu <[email protected]> Closes #8082 from viadea/master and squashes the following commits: 242d05f [Hao Zhu] [SPARK-9801][Streaming]No need to check the existence of those files fd143f2 [Hao Zhu] [SPARK-9801][Streaming]Check if backupFile exists before deleting backupFile files. 087daf0 [Hao Zhu] SPARK-9801 (cherry picked from commit 3c9802d) Signed-off-by: Tathagata Das <[email protected]>
…ry files. Spark streaming deletes the temp file and backup files without checking if they exist or not Author: Hao Zhu <[email protected]> Closes #8082 from viadea/master and squashes the following commits: 242d05f [Hao Zhu] [SPARK-9801][Streaming]No need to check the existence of those files fd143f2 [Hao Zhu] [SPARK-9801][Streaming]Check if backupFile exists before deleting backupFile files. 087daf0 [Hao Zhu] SPARK-9801 (cherry picked from commit 3c9802d) Signed-off-by: Tathagata Das <[email protected]>
|
Actually, I merged it to 1.4 and 1.3 branches as well. |
…ry files. Spark streaming deletes the temp file and backup files without checking if they exist or not Author: Hao Zhu <[email protected]> Closes apache#8082 from viadea/master and squashes the following commits: 242d05f [Hao Zhu] [SPARK-9801][Streaming]No need to check the existence of those files fd143f2 [Hao Zhu] [SPARK-9801][Streaming]Check if backupFile exists before deleting backupFile files. 087daf0 [Hao Zhu] SPARK-9801
Spark streaming deletes the temp file and backup files without checking if they exist or not