Skip to content

Commit f6eb279

Browse files
authored
Simplify TransportBroadcastByNodeAction (#93484)
Similarly to #92987, recent improvements to the primitives for writing async code (particularly #92452 and #92620) mean that we can enormously simplify `TransportBroadcastByNodeAction`. In particular, we can avoid accumulating an intermediate array of responses for later processing in favour of just accumulating the successes and failures into their final separate lists. We also no longer need to use a separate `NodesResponseTracker` to discard responses on cancellation. Finally, we can now discard shard-level responses more promptly on cancellation.
1 parent f694d30 commit f6eb279

File tree

4 files changed

+293
-472
lines changed

4 files changed

+293
-472
lines changed

server/src/main/java/org/elasticsearch/action/support/NodeResponseTracker.java

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)