Skip to content

Commit f92f581

Browse files
committed
Simplify TransportBroadcastByNodeAction
Similarly to elastic#92987, recent improvements to the primitives for writing async code (particularly elastic#92452 and elastic#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 c143caf commit f92f581

File tree

4 files changed

+294
-484
lines changed

4 files changed

+294
-484
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)