File tree 1 file changed +4
-1
lines changed
server/src/test/java/org/elasticsearch/indices/settings
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ public void testSimpleUpdateNumberOfReplicas() throws Exception {
91
91
logger .info ("starting another node to new replicas will be allocated to it" );
92
92
allowNodes ("test" , 3 );
93
93
94
+ final long afterStartingAnotherNodeVersion =
95
+ client ().admin ().cluster ().prepareState ().get ().getState ().metaData ().index ("test" ).getSettingsVersion ();
96
+ mit -
94
97
logger .info ("Running Cluster Health" );
95
98
clusterHealth = client ().admin ().cluster ().prepareHealth ().setWaitForEvents (Priority .LANGUID ).setWaitForGreenStatus ().setWaitForNoRelocatingShards (true ).setWaitForNodes (">=3" ).execute ().actionGet ();
96
99
logger .info ("Done Cluster Health, status {}" , clusterHealth .getStatus ());
@@ -125,7 +128,7 @@ public void testSimpleUpdateNumberOfReplicas() throws Exception {
125
128
126
129
final long afterReplicaDecreaseSettingsVersion =
127
130
client ().admin ().cluster ().prepareState ().get ().getState ().metaData ().index ("test" ).getSettingsVersion ();
128
- assertThat (afterReplicaDecreaseSettingsVersion , equalTo (1 + afterReplicaIncreaseSettingsVersion ));
131
+ assertThat (afterReplicaDecreaseSettingsVersion , equalTo (1 + afterStartingAnotherNodeVersion ));
129
132
}
130
133
131
134
public void testAutoExpandNumberOfReplicas0ToData () throws IOException {
You can’t perform that action at this time.
0 commit comments