diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-04-20 14:20:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 14:20:00 +0200 |
commit | 24a32dbdd32503c08cb1d75dfb180b4402405160 (patch) | |
tree | 666fb85c7e57965ddc0007320a0f84c36a1d5e95 | |
parent | ef70c5d5cb05ea47f3f97a4a5baf44378136da2e (diff) | |
parent | faa512418817c1c51b1abb60f8e9ca8609c9ed10 (diff) |
Merge pull request #17501 from vespa-engine/arnej/always-run-prepare-restart
let the sentinel run the RPC call for prepare-restart on content nodes.
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java | 2 | ||||
-rw-r--r-- | config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java b/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java index 6f7709efc24..a4322976992 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java @@ -121,7 +121,7 @@ public class ContentSearchCluster extends AbstractConfigProducer<SearchCluster> if (flushOnShutdownElem != null) { return flushOnShutdownElem; } - return ! stateIsHosted(deployState); + return true; } private Double getQueryTimeout(ModelElement clusterElem) { diff --git a/config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java b/config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java index 811e789752e..5ffade0776a 100644 --- a/config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java +++ b/config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java @@ -790,8 +790,8 @@ public class ContentClusterTest extends ContentBaseTest { } @Test - public void flush_on_shutdown_is_default_off_for_hosted() throws Exception { - assertNoPreShutdownCommand(createOneNodeCluster(true)); + public void flush_on_shutdown_is_default_on_for_hosted() throws Exception { + assertPrepareRestartCommand(createOneNodeCluster(true)); } @Test |