Skip to content

Commit

Permalink
TransportBroadcastAction should always set response for each shard (#…
Browse files Browse the repository at this point in the history
…84926)

The TransportBroadcastAction can leave the responses of some group unset
if all shards of that group hit shard_unavailable_exception.
  • Loading branch information
dnhatn committed Mar 26, 2022
1 parent 53606ba commit 9576c09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/84926.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 84926
summary: '`TransportBroadcastAction` should always set response for each shard'
area: Search
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,6 @@ protected void finishHim() {
}

void setFailure(ShardIterator shardIt, int shardIndex, Exception e) {
// we don't aggregate shard failures on non active shards (but do keep the header counts right)
if (TransportActions.isShardNotAvailableException(e)) {
return;
}

if ((e instanceof BroadcastShardOperationFailedException) == false) {
e = new BroadcastShardOperationFailedException(shardIt.shardId(), e);
}
Expand Down

0 comments on commit 9576c09

Please sign in to comment.