-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-13601] call failure callbacks before writer.close() #11450
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 #52255 has finished for PR 11450 at commit
|
|
Test build #52258 has finished for PR 11450 at commit
|
|
Thanks for doing this. I took a look and I think we also need to update a few of the places in WriterContainer.scala, because the SQL file-based data sources don't actually go through this pair rdd path. |
|
@rxin Added. |
| * exception from the original `out.write` call. | ||
| */ | ||
| def tryWithSafeFinallyAndFailureCallbacks[T](block: => T)(finallyBlock: => Unit): T = { | ||
| // It would be nice to find a method on Try that did this |
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.
remove this comment
|
LGTM pending tests. Can you just remove that comment when you merge it? |
|
Test build #52335 has finished for PR 11450 at commit
|
|
Merging this into master (comments removed), will cherry-picked into 1.6 later. |
|
Test build #52341 has finished for PR 11450 at commit
|
In order to tell OutputStream that the task has failed or not, we should call the failure callbacks BEFORE calling writer.close(). Added new unit tests. Author: Davies Liu <[email protected]> Closes #11450 from davies/callback.
## What changes were proposed in this pull request? In order to tell OutputStream that the task has failed or not, we should call the failure callbacks BEFORE calling writer.close(). ## How was this patch tested? Added new unit tests. Author: Davies Liu <[email protected]> Closes apache#11450 from davies/callback.
What changes were proposed in this pull request?
In order to tell OutputStream that the task has failed or not, we should call the failure callbacks BEFORE calling writer.close().
How was this patch tested?
Added new unit tests.