Skip to content

Commit e0e7f1f

Browse files
Disk threshold decider is enabled by default (#50222)
An old comment had survived after the default was flipped. Relates #6204
1 parent 843ce78 commit e0e7f1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
package org.elasticsearch.cluster.routing.allocation.decider;
2121

22-
import java.util.Set;
23-
2422
import com.carrotsearch.hppc.cursors.ObjectCursor;
2523
import org.apache.logging.log4j.LogManager;
2624
import org.apache.logging.log4j.Logger;
@@ -44,6 +42,8 @@
4442
import org.elasticsearch.index.Index;
4543
import org.elasticsearch.index.shard.ShardId;
4644

45+
import java.util.Set;
46+
4747
import static org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING;
4848
import static org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING;
4949

@@ -68,7 +68,7 @@
6868
* exact byte values for free space (like "500mb")
6969
*
7070
* <code>cluster.routing.allocation.disk.threshold_enabled</code> is used to
71-
* enable or disable this decider. It defaults to false (disabled).
71+
* enable or disable this decider. It defaults to true (enabled).
7272
*/
7373
public class DiskThresholdDecider extends AllocationDecider {
7474

0 commit comments

Comments
 (0)