@@ -75,15 +75,15 @@ public void testSingleStringSetting() throws Exception {
7575 // hashes not yet published
7676 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).areAllConsistent (), is (false ));
7777 // publish
78- new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).newHashPublisher ().onClusterManager ();
78+ new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).newHashPublisher ().onMaster ();
7979 ConsistentSettingsService consistentService = new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting ));
8080 assertThat (consistentService .areAllConsistent (), is (true ));
8181 // change value
8282 secureSettings .setString (stringSetting .getKey (), "_TYPO_somethingsecure" );
8383 assertThat (consistentService .areAllConsistent (), is (false ));
8484 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).areAllConsistent (), is (false ));
8585 // publish change
86- new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).newHashPublisher ().onClusterManager ();
86+ new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).newHashPublisher ().onMaster ();
8787 assertThat (consistentService .areAllConsistent (), is (true ));
8888 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).areAllConsistent (), is (true ));
8989 }
@@ -108,7 +108,7 @@ public void testSingleAffixSetting() throws Exception {
108108 is (false )
109109 );
110110 // publish
111- new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).newHashPublisher ().onClusterManager ();
111+ new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).newHashPublisher ().onMaster ();
112112 ConsistentSettingsService consistentService = new ConsistentSettingsService (
113113 settings ,
114114 clusterService ,
@@ -123,7 +123,7 @@ public void testSingleAffixSetting() throws Exception {
123123 is (false )
124124 );
125125 // publish change
126- new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).newHashPublisher ().onClusterManager ();
126+ new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).newHashPublisher ().onMaster ();
127127 assertThat (consistentService .areAllConsistent (), is (true ));
128128 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).areAllConsistent (), is (true ));
129129 // add value
@@ -136,7 +136,7 @@ public void testSingleAffixSetting() throws Exception {
136136 is (false )
137137 );
138138 // publish
139- new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).newHashPublisher ().onClusterManager ();
139+ new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).newHashPublisher ().onMaster ();
140140 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).areAllConsistent (), is (true ));
141141 // remove value
142142 secureSettings = new MockSecureSettings ();
@@ -173,7 +173,7 @@ public void testStringAndAffixSettings() throws Exception {
173173 is (false )
174174 );
175175 // publish only the simple string setting
176- new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).newHashPublisher ().onClusterManager ();
176+ new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).newHashPublisher ().onMaster ();
177177 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).areAllConsistent (), is (true ));
178178 assertThat (
179179 new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).areAllConsistent (),
@@ -184,7 +184,7 @@ public void testStringAndAffixSettings() throws Exception {
184184 is (false )
185185 );
186186 // publish only the affix string setting
187- new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).newHashPublisher ().onClusterManager ();
187+ new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).newHashPublisher ().onMaster ();
188188 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).areAllConsistent (), is (false ));
189189 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).areAllConsistent (), is (true ));
190190 assertThat (
@@ -193,7 +193,7 @@ public void testStringAndAffixSettings() throws Exception {
193193 );
194194 // publish both settings
195195 new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting , affixStringSetting )).newHashPublisher ()
196- .onClusterManager ();
196+ .onMaster ();
197197 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (stringSetting )).areAllConsistent (), is (true ));
198198 assertThat (new ConsistentSettingsService (settings , clusterService , Arrays .asList (affixStringSetting )).areAllConsistent (), is (true ));
199199 assertThat (
0 commit comments