Tests: Tweaking static bwc tests to improve stability
This commit is contained in:
parent
54d01c48cb
commit
dfc2c9f3a1
|
@ -126,7 +126,6 @@ public class OldIndexBackwardsCompatibilityTests extends StaticIndexBackwardComp
|
|||
public void testOldIndexes() throws Exception {
|
||||
Collections.shuffle(indexes, getRandom());
|
||||
for (String index : indexes) {
|
||||
logMemoryStats();
|
||||
logger.info("Testing old index " + index);
|
||||
assertOldIndexWorks(index);
|
||||
}
|
||||
|
@ -137,6 +136,7 @@ public class OldIndexBackwardsCompatibilityTests extends StaticIndexBackwardComp
|
|||
.put(InternalNode.HTTP_ENABLED, true) // for _upgrade
|
||||
.build();
|
||||
loadIndex(index, settings);
|
||||
logMemoryStats();
|
||||
assertBasicSearchWorks();
|
||||
assertRealtimeGetWorks();
|
||||
assertNewReplicasWork();
|
||||
|
@ -193,7 +193,7 @@ public class OldIndexBackwardsCompatibilityTests extends StaticIndexBackwardComp
|
|||
.put(InternalNode.HTTP_ENABLED, true) // for _upgrade
|
||||
.build());
|
||||
}
|
||||
ensureGreen("test");
|
||||
client().admin().cluster().prepareHealth("test").setWaitForNodes("" + (numReplicas + 1));
|
||||
assertAcked(client().admin().indices().prepareUpdateSettings("test").setSettings(ImmutableSettings.builder()
|
||||
.put("number_of_replicas", numReplicas)).execute().actionGet());
|
||||
// This can take a while when the number of replicas is greater than cluster.routing.allocation.node_concurrent_recoveries
|
||||
|
|
Loading…
Reference in New Issue