-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Ban all usage of Future#cancel(true) #8494
Conversation
|
||
/** | ||
*/ | ||
public class FutureUtil { |
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.
All of our utility classes are plural, and you reference FutureUtils
in the forbidden apis message also, I think this should be FutureUtils
LGTM, left two minor comments |
@dakrone thanks for the review I push changes |
LGTM! |
577b502
to
709f326
Compare
@kimchy any comments on that |
LGTM |
Interrupting a thread while blocking on an NIO Read / Write Operation can cause a file to be closed due to the interrupts. This can have unpredictable effects when files are open by index readers etc. we should prevent interruptions across the board if possible. Closes elastic#8494
709f326
to
5c6fe25
Compare
@s1monw I think this didn't make it into 1.x? (I can't find it and |
@dakrone yeah I wanted it to bake in a bit - will backport |
Interrupting a thread while blocking on an NIO Read / Write Operation can cause a file to be closed due to the interrupts. This can have unpredictable effects when files are open by index readers etc. we should prevent interruptions across the board if possible. Closes #8494 Conflicts: src/main/java/org/elasticsearch/gateway/local/state/meta/LocalGatewayMetaState.java
Interrupting a thread while blocking on an NIO Read / Write Operation
can cause a file to be closed due to the interrupts. This can have unpredictable
effects when files are open by index readers etc. we should prevent interruptions
across the board if possible.