-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-4663][sql]add finally to avoid resource leak #3526
Conversation
Can one of the admins verify this patch? |
Jenkins, this is ok to test. |
Test build #23970 has started for PR 3526 at commit
|
Test build #23970 has finished for PR 3526 at commit
|
Test PASSed. |
writer.write(null, row) | ||
} | ||
} | ||
finally { |
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.
can you put the finally on the same line as the previous } ? thanks.
@rxin no problem. Had modify it :) |
Test build #23988 has started for PR 3526 at commit
|
Test build #23988 has finished for PR 3526 at commit
|
Test PASSed. |
writer.write(null, row) | ||
} | ||
} finally { | ||
writer.close(hadoopContext) |
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.
indent only 2 spaces here.
had modified according @marmbrus comment:) |
Test build #24017 has started for PR 3526 at commit
|
Test build #24017 has finished for PR 3526 at commit
|
Test PASSed. |
Author: baishuo <vc_java@hotmail.com> Closes #3526 from baishuo/master-trycatch and squashes the following commits: d446e14 [baishuo] correct the code style b36bf96 [baishuo] correct the code style ae0e447 [baishuo] add finally to avoid resource leak (cherry picked from commit 69b6fed) Signed-off-by: Michael Armbrust <michael@databricks.com>
Thanks, merged to master and 1.2 |
No description provided.