Skip to content

Commit

Permalink
Remove auto_release_flood_stage_block property check (elastic#114696)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
arteam authored and davidkyle committed Oct 24, 2024
1 parent 6c1cf09 commit f7c6f6d
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.elasticsearch.common.unit.RelativeByteSizeValue;
import org.elasticsearch.core.Strings;
import org.elasticsearch.core.TimeValue;
import org.elasticsearch.core.UpdateForV9;

import java.io.IOException;
import java.util.Iterator;
Expand Down Expand Up @@ -156,19 +155,6 @@ public class DiskThresholdSettings implements Writeable {
private volatile boolean enabled;
private volatile TimeValue rerouteInterval;

static {
checkAutoReleaseIndexEnabled();
}

@UpdateForV9(owner = UpdateForV9.Owner.DISTRIBUTED_COORDINATION) // this check is unnecessary in v9
private static void checkAutoReleaseIndexEnabled() {
final String AUTO_RELEASE_INDEX_ENABLED_KEY = "es.disk.auto_release_flood_stage_block";
final String property = System.getProperty(AUTO_RELEASE_INDEX_ENABLED_KEY);
if (property != null) {
throw new IllegalArgumentException("system property [" + AUTO_RELEASE_INDEX_ENABLED_KEY + "] may not be set");
}
}

public DiskThresholdSettings(Settings settings, ClusterSettings clusterSettings) {
setLowWatermark(CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING.get(settings));
setLowStageMaxHeadroom(CLUSTER_ROUTING_ALLOCATION_LOW_DISK_MAX_HEADROOM_SETTING.get(settings));
Expand Down

0 comments on commit f7c6f6d

Please sign in to comment.