Skip to content

Commit 4820315

Browse files
committed
PR feedback
1 parent b8eb086 commit 4820315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/shards/ShardsAvailabilityHealthIndicatorService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public void increment(
532532
// computations to the maxAffectedResourcesCount. The main negative side effect of this is that
533533
// we might miss some diagnoses. We are willing to take this risk, and users can always
534534
// use the allocation explain API for more details or increase the maxAffectedResourcesCount.
535-
// Since we have two `SharAllocationCounts` instances (primaries and replicas), we technically
535+
// Since we have two ShardAllocationCounts instances (primaries and replicas), we technically
536536
// do 2 * maxAffectedResourcesCount computations, but the added complexity of accurately
537537
// limiting the number of calls doesn't outweigh the benefits, as the main goal is to limit
538538
// the number of computations to a constant rather than a number that grows with the cluster size.
@@ -543,7 +543,7 @@ public void increment(
543543
}
544544
case INITIALIZING -> {
545545
initializing++;
546-
if (verbose && initializing <= maxAffectedResourcesCount) {
546+
if (verbose) {
547547
addDefinition(DIAGNOSIS_WAIT_FOR_INITIALIZATION, projectIndex);
548548
}
549549
}

0 commit comments

Comments
 (0)