Tests: wait for discovery to be completed after both majority nodes follow a new master

This commit is contained in:
Martijn van Groningen 2015-03-06 13:50:22 +01:00
parent 48bdd58d51
commit dccaa49aa0
1 changed files with 1 additions and 0 deletions

View File

@ -650,6 +650,7 @@ public class DiscoveryWithServiceDisruptionsTests extends ElasticsearchIntegrati
// Wait for the majority side to get stable
assertDifferentMaster(majoritySide.get(0), oldMasterNode);
assertDifferentMaster(majoritySide.get(1), oldMasterNode);
assertDiscoveryCompleted(majoritySide);
// The old master node is frozen, but here we submit a cluster state update task that doesn't get executed,
// but will be queued and once the old master node un-freezes it gets executed.