-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40826][SS] Add additional checkpoint rename file check #38291
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
itholic
left a comment
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.
Looks pretty good otherwise
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
dongjoon-hyun
left a comment
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.
+1, LGTM.
|
Are the failures related? |
|
Since the first commit passed the UT, I guess it's irrelevant. |
|
It is not. I only add |
|
Verified locally these tests are passed. |
|
Synced up with master and try again. |
|
Ya, |
|
Merged to master for Apache Spark 3.4. |
|
Thanks @dongjoon-hyun @HyukjinKwon @itholic |
|
(Just curious about how you came through the case. Was the issue from underlying storage, or inconsistency of file system API? I can't imagine the scenario if the API works as contract and the underlying file system is stable, so...) |
### What changes were proposed in this pull request? This adds additional checkpoint rename file check. ### Why are the changes needed? We encountered an issue recently that one customer's structured streaming job failed to read delta file. The temporary file exists but it was not successfully renamed to final delta file path. We currently don't check if renamed file exists but assume it successful. As the result, failing to read delta file assumed to be committed in last batch makes re-triggering the job impossible. We should be able to do a check against checkpoint renamed file to prevent such difficulty in advance. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests. Closes apache#38291 from viirya/add_file_check. Authored-by: Liang-Chi Hsieh <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
This adds additional checkpoint rename file check.
Why are the changes needed?
We encountered an issue recently that one customer's structured streaming job failed to read delta file.
The temporary file exists but it was not successfully renamed to final delta file path.
We currently don't check if renamed file exists but assume it successful. As the result, failing to read delta file assumed to be committed in last batch makes re-triggering the job impossible.
We should be able to do a check against checkpoint renamed file to prevent such difficulty in advance.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing tests.