Skip to content

Commit

Permalink
Preliminary fix for elastic#87001
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmitterdorfer committed May 11, 2023
1 parent a86ee38 commit a9a1eb5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ private static void aggregateDataTierShardStats(NodeStats nodeStats, Index index
accumulator.docCount += shardStat.getTotal().getDocs().getCount();

// Accumulate stats about started shards
if (node.getByShardId(shardStat.getShardId()).state() == ShardRoutingState.STARTED) {
ShardRouting shardRouting = node.getByShardId(shardStat.getShardId());
if (shardRouting != null && shardRouting.state() == ShardRoutingState.STARTED) {
accumulator.totalShardCount += 1;

// Accumulate stats about started primary shards
Expand Down

0 comments on commit a9a1eb5

Please sign in to comment.