-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Discard intermediate results upon cancellation for stats endpoints #82685
Discard intermediate results upon cancellation for stats endpoints #82685
Conversation
@elasticsearchmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
This will allow us to isolate testing and argue about races
@elasticmachine update branch |
@elasticmachine run elasticsearch-ci/packaging-tests-unix-sample |
@elasticmachine run elasticsearch-ci/part-1 |
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 generally looks good to me, I left an optional comment
server/src/main/java/org/elasticsearch/action/support/NodeResponseTracker.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/action/support/NodeResponseTracker.java
Outdated
Show resolved
Hide resolved
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.
Looks good @gmarouli, I left a handful of small comments.
server/src/main/java/org/elasticsearch/tasks/CancellableTask.java
Outdated
Show resolved
Hide resolved
...ain/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java
Outdated
Show resolved
Hide resolved
...ain/java/org/elasticsearch/action/support/broadcast/node/TransportBroadcastByNodeAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/action/support/NodeResponseTracker.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/action/support/NodeResponseTracker.java
Outdated
Show resolved
Hide resolved
@dakrone & @DaveCTurner Thank you very much for your comments! |
@elasticmachine run elasticsearch-ci/packaging-tests-unix-sample |
@elasticmachine run elasticsearch-ci/packaging-tests-windows-sample |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine run elasticsearch-ci/bwc |
Today we rely on an `isRunning` check to check for task cancellation, but since elastic#82685 we can actively record the failure arising from the cancellation using a `CancellationListener`. Closes elastic#101197
Discard intermediate results when a stats request is cancelled.
Next tasks:
_cluster/state
requestResolves #82337