-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Do not swallow interrupted exception #5421
Do not swallow interrupted exception #5421
Conversation
Possibly fixes #5422 |
3a3aea6
to
b22472f
Compare
@wendigo Added one more commit. |
@@ -52,6 +52,7 @@ | |||
import static io.airlift.concurrent.Threads.daemonThreadsNamed; | |||
import static io.airlift.units.DataSize.ofBytes; | |||
import static java.lang.String.format; | |||
import static java.lang.Thread.currentThread; |
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.
This is typically not static imported
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.
Thread.currentThread()
looks like ImmutableList.toImmutableList()
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.
I applied your comment. I see that this is common. I will leave it for another time.
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.
Thread.currentThread()
looks likeImmutableList.toImmutableList()
the similarity is deceptive
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.
%
Catching Exception is very broad and error prone. This refactor changes that to catch only exceptions that are possibly thrown.
b22472f
to
9be7c68
Compare
Failed with: #5427 |
Do not swallow interrupted exception