[SPARK-9801][Streaming]Check if file exists before deleting temporary files.#8082
[SPARK-9801][Streaming]Check if file exists before deleting temporary files.#8082viadea wants to merge 3 commits into
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.
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.
I agreed and I just made the change. Can you start another build and test?
There was a problem hiding this comment.
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 <viadeazhu@gmail.com> 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 <tathagata.das1565@gmail.com>
…ry files. Spark streaming deletes the temp file and backup files without checking if they exist or not Author: Hao Zhu <viadeazhu@gmail.com> 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 <tathagata.das1565@gmail.com>
…ry files. Spark streaming deletes the temp file and backup files without checking if they exist or not Author: Hao Zhu <viadeazhu@gmail.com> 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 <tathagata.das1565@gmail.com>
|
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 <viadeazhu@gmail.com> 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