Skip to content

Commit 9576c09

Browse files
committed
TransportBroadcastAction should always set response for each shard (#84926)
The TransportBroadcastAction can leave the responses of some group unset if all shards of that group hit shard_unavailable_exception.
1 parent 53606ba commit 9576c09

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/changelog/84926.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 84926
2+
summary: '`TransportBroadcastAction` should always set response for each shard'
3+
area: Search
4+
type: bug
5+
issues: []

server/src/main/java/org/elasticsearch/action/support/broadcast/TransportBroadcastAction.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,6 @@ protected void finishHim() {
262262
}
263263

264264
void setFailure(ShardIterator shardIt, int shardIndex, Exception e) {
265-
// we don't aggregate shard failures on non active shards (but do keep the header counts right)
266-
if (TransportActions.isShardNotAvailableException(e)) {
267-
return;
268-
}
269-
270265
if ((e instanceof BroadcastShardOperationFailedException) == false) {
271266
e = new BroadcastShardOperationFailedException(shardIt.shardId(), e);
272267
}

0 commit comments

Comments
 (0)