-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-12489][Core][SQL][MLib]Fix minor issues found by FindBugs #10440
Conversation
@@ -293,9 +293,7 @@ private String createSecret() { | |||
protected void handle(Message msg) throws IOException { | |||
try { | |||
if (msg instanceof Hello) { | |||
synchronized (timeout) { |
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.
timeout.cancel
already uses a lock internally.
Test build #48215 has finished for PR 10440 at commit
|
ML changes look good to me. Thanks! |
@andrewor14 could you take a look at this pr? Thanks! |
Looks good. |
Maybe @yhuai or @liancheng should take a quick look at the SQL changes. |
sql changes look good. |
Thanks. Merging to master and 1.6 |
Include the following changes: 1. Close `java.sql.Statement` 2. Fix incorrect `asInstanceOf`. 3. Remove unnecessary `synchronized` and `ReentrantLock`. Author: Shixiong Zhu <[email protected]> Closes #10440 from zsxwing/findbugs. (cherry picked from commit 710b411) Signed-off-by: Shixiong Zhu <[email protected]>
Include the following changes:
java.sql.Statement
asInstanceOf
.synchronized
andReentrantLock
.