aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/vespa/model/container/search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-10-12 08:11:59 +0200
committerJon Bratseth <bratseth@gmail.com>2020-10-12 08:11:59 +0200
commit0c006afda8be00c251cfe05dfa2d2d0d0b5aa286 (patch)
tree1b059caaa8947c4d662e0b12455c6246c2df1818 /config-model/src/test/java/com/yahoo/vespa/model/container/search
parent982a1b1804b8773be2c5db13535fa0b0e33928b1 (diff)
Defer changes until restart
In container clusters, if it is determined that a restart is required to swicth to a new config generation, mark that config as applicable only after a restart. This avoids wasting resources on a config change just before a restart, and the potential of prematurely applying config changes which depend on other changes which are not effective before a restart has been done.
Diffstat (limited to 'config-model/src/test/java/com/yahoo/vespa/model/container/search')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/container/search/ImplicitIndexingClusterTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/container/search/ImplicitIndexingClusterTest.java b/config-model/src/test/java/com/yahoo/vespa/model/container/search/ImplicitIndexingClusterTest.java
index c7118618003..2d48f55d3d5 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/container/search/ImplicitIndexingClusterTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/container/search/ImplicitIndexingClusterTest.java
@@ -50,7 +50,7 @@ public class ImplicitIndexingClusterTest {
ModelContext.Properties properties = new TestProperties().setMultitenant(true).setHostedVespa(true);
DeployState.Builder deployStateBuilder = new DeployState.Builder()
.properties(properties)
- .modelHostProvisioner(new InMemoryProvisioner(true, "host1.yahoo.com", "host2.yahoo.com", "host3.yahoo.com"));
+ .modelHostProvisioner(new InMemoryProvisioner(true, false, "host1.yahoo.com", "host2.yahoo.com", "host3.yahoo.com"));
return new VespaModelCreatorWithMockPkg(new MockApplicationPackage.Builder()
.withServices("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + servicesXml)