Skip to content

Commit d3308d2

Browse files
committed
Use notFullyEnabled
1 parent 6971468 commit d3308d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public void onNewInfo(ClusterInfo clusterInfo) {
6767
return;
6868
}
6969

70-
if (writeLoadConstraintSettings.getWriteLoadConstraintEnabled() != WriteLoadConstraintSettings.WriteLoadDeciderStatus.ENABLED) {
71-
logger.debug("skipping monitor because the write load decider is disabled");
70+
if (writeLoadConstraintSettings.getWriteLoadConstraintEnabled().notFullyEnabled()) {
71+
logger.debug("skipping monitor because the write load decider is not fully enabled");
7272
return;
7373
}
7474

server/src/test/java/org/elasticsearch/cluster/routing/allocation/WriteLoadConstraintMonitorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void testRerouteIsNotCalledDeciderIsNotEnabled() {
129129
"don't reroute due to decider being disabled",
130130
WriteLoadConstraintMonitor.class.getCanonicalName(),
131131
Level.DEBUG,
132-
"skipping monitor because the write load decider is disabled"
132+
"skipping monitor because the write load decider is not fully enabled"
133133
)
134134
);
135135

0 commit comments

Comments
 (0)