Skip to content

Commit 99b25d3

Browse files
committed
Keep nodes above watermark in testAutomaticReleaseOfIndexBlock (#47387)
Today the comment boldly claims that this line of code keeps nodes above the 10-byte low watermark when in fact this is not true at all. This change fixes this so that it really does keep nodes above the low watermark. Fixes #45338. Again.
1 parent 0179f93 commit 99b25d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/cluster/routing/allocation/decider/MockDiskUsagesIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void testAutomaticReleaseOfIndexBlock() throws Exception {
185185
// Move all nodes above the low watermark so no shard movement can occur, and at least one node above the flood stage watermark so
186186
// the index is blocked
187187
clusterInfoService.diskUsageFunction = (discoveryNode, fsInfoPath) -> setDiskUsage(fsInfoPath, 100,
188-
discoveryNode.getId().equals(nodeIds.get(2)) ? between(0, 4) : between(0, 14));
188+
discoveryNode.getId().equals(nodeIds.get(2)) ? between(0, 4) : between(0, 9));
189189

190190
assertBusy(() -> assertBlocked(
191191
client().prepareIndex().setIndex("test").setType("doc").setId("1").setSource("foo", "bar"),

0 commit comments

Comments
 (0)