Skip to content

Commit c37aaeb

Browse files
Add code comment
Co-authored-by: David Turner <[email protected]>
1 parent bf92d6a commit c37aaeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDeciderIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ public void testRestoreSnapshotAllocationDoesNotExceedWatermarkWithMultipleResto
283283
final var useableSpaceShardSizes = shardSizes.getShardIdsWithSizeSmallerOrEqual(usableSpace);
284284
final var tinyNodeShardId = tinyNodeShardIds.isEmpty() == false
285285
? tinyNodeShardIds.iterator().next()
286+
// shardSizes only contains the sizes from the original index, not the copy, so we map the copied shard back to the original idx
286287
: new ShardId(useableSpaceShardSizes.iterator().next().getIndex(), tinyNodeShardIdsCopy.iterator().next().id());
287288
assertThat(tinyNodeShardId, in(useableSpaceShardSizes));
288289
}

0 commit comments

Comments
 (0)