Uh oh!
There was an error while loading. Please reload this page.
[SPARK-21696][SS]Fix a potential issue that may generate partial snapshot files - #18928
Closed
zsxwing wants to merge 1 commit into
Closed
[SPARK-21696][SS]Fix a potential issue that may generate partial snapshot files#18928zsxwing wants to merge 1 commit into
zsxwing wants to merge 1 commit into
Conversation
zsxwing
commented
Aug 11, 2017
MemberAuthor
SparkQA
commented
Aug 12, 2017
Test build #80557 has finished for PR 18928 at commit
|
tdas
commented
Aug 14, 2017
Contributor
LGTM. |
asfgit pushed a commit
that referenced
this pull request
Aug 14, 2017
…pshot files ## What changes were proposed in this pull request? Directly writing a snapshot file may generate a partial file. This PR changes it to write to a temp file then rename to the target file. ## How was this patch tested? Jenkins. Author: Shixiong Zhu <shixiong@databricks.com> Closes#18928 from zsxwing/SPARK-21696. (cherry picked from commit 282f00b) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
YuvalItzchakov
commented
Aug 26, 2017
@zsxwing Can you elaborate on why writing to a file directly may generate a partial file? Is this about an exception terminating the write to the underlying file system while the maintenance task is writing? |
zsxwing
commented
Aug 27, 2017
MemberAuthor
@YuvalItzchakov there are many cases: power outage, the process is killed by oom killer, or the user calls |
YuvalItzchakov
commented
Aug 27, 2017
Right. We've had some problems with reading snapshots after executors dying on OOM, I hope this does the trick :) Thanks. |
MatthewRBruce pushed a commit
to Shopify/spark
that referenced
this pull request
Jul 31, 2018
…pshot files ## What changes were proposed in this pull request? Directly writing a snapshot file may generate a partial file. This PR changes it to write to a temp file then rename to the target file. ## How was this patch tested? Jenkins. Author: Shixiong Zhu <shixiong@databricks.com> Closesapache#18928 from zsxwing/SPARK-21696. (cherry picked from commit 282f00b) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Directly writing a snapshot file may generate a partial file. This PR changes it to write to a temp file then rename to the target file.
How was this patch tested?
Jenkins.