Skip to content

Commit 2e94182

Browse files
committed
Remove auto_release_flood_stage_block property check
This property was deprecated in elastic#45274 (8.0)
1 parent e833e7b commit 2e94182

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,6 @@ public class DiskThresholdSettings implements Writeable {
156156
private volatile boolean enabled;
157157
private volatile TimeValue rerouteInterval;
158158

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-
172159
public DiskThresholdSettings(Settings settings, ClusterSettings clusterSettings) {
173160
setLowWatermark(CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING.get(settings));
174161
setLowStageMaxHeadroom(CLUSTER_ROUTING_ALLOCATION_LOW_DISK_MAX_HEADROOM_SETTING.get(settings));

0 commit comments

Comments
 (0)