Skip to content

Commit f7c6f6d

Browse files
arteamdavidkyle
authored andcommitted
Remove auto_release_flood_stage_block property check (elastic#114696)
There's no option to disable the auto release of the write block when a node exceeds the flood-stage watermark. This property was deprecated in elastic#45274 (8.0)
1 parent 6c1cf09 commit f7c6f6d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/DiskThresholdSettings.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.elasticsearch.common.unit.RelativeByteSizeValue;
2020
import org.elasticsearch.core.Strings;
2121
import org.elasticsearch.core.TimeValue;
22-
import org.elasticsearch.core.UpdateForV9;
2322

2423
import java.io.IOException;
2524
import java.util.Iterator;
@@ -156,19 +155,6 @@ public class DiskThresholdSettings implements Writeable {
156155
private volatile boolean enabled;
157156
private volatile TimeValue rerouteInterval;
158157

159-
static {
160-
checkAutoReleaseIndexEnabled();
161-
}
162-
163-
@UpdateForV9(owner = UpdateForV9.Owner.DISTRIBUTED_COORDINATION) // this check is unnecessary in v9
164-
private static void checkAutoReleaseIndexEnabled() {
165-
final String AUTO_RELEASE_INDEX_ENABLED_KEY = "es.disk.auto_release_flood_stage_block";
166-
final String property = System.getProperty(AUTO_RELEASE_INDEX_ENABLED_KEY);
167-
if (property != null) {
168-
throw new IllegalArgumentException("system property [" + AUTO_RELEASE_INDEX_ENABLED_KEY + "] may not be set");
169-
}
170-
}
171-
172158
public DiskThresholdSettings(Settings settings, ClusterSettings clusterSettings) {
173159
setLowWatermark(CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING.get(settings));
174160
setLowStageMaxHeadroom(CLUSTER_ROUTING_ALLOCATION_LOW_DISK_MAX_HEADROOM_SETTING.get(settings));

0 commit comments

Comments
 (0)