diff --git a/src/main/java/org/elasticsearch/action/support/broadcast/TransportBroadcastOperationAction.java b/src/main/java/org/elasticsearch/action/support/broadcast/TransportBroadcastOperationAction.java index 85dcc0f74e4..a0beb6e6438 100644 --- a/src/main/java/org/elasticsearch/action/support/broadcast/TransportBroadcastOperationAction.java +++ b/src/main/java/org/elasticsearch/action/support/broadcast/TransportBroadcastOperationAction.java @@ -211,6 +211,7 @@ public abstract class TransportBroadcastOperationActionnewMapBuilder().put("test", "value" + i).map()).execute().actionGet(); } - // now start adding nodes + logger.info("--> now start adding nodes"); internalCluster().startNodesAsync(2).get(); // make sure the cluster state is green, and all has been recovered assertTimeout(client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setTimeout("1m").setWaitForGreenStatus().setWaitForRelocatingShards(0).setWaitForNodes("3")); - // now start adding nodes + logger.info("--> add two more nodes"); internalCluster().startNodesAsync(2).get(); // We now have 5 nodes @@ -84,6 +84,7 @@ public class FullRollingRestartTests extends ElasticsearchIntegrationTest { // make sure the cluster state is green, and all has been recovered assertTimeout(client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setTimeout("1m").setWaitForGreenStatus().setWaitForRelocatingShards(0).setWaitForNodes("5")); + logger.info("--> refreshing and checking data"); refresh(); for (int i = 0; i < 10; i++) { assertHitCount(client().prepareCount().setQuery(matchAllQuery()).get(), 2000l); @@ -101,6 +102,7 @@ public class FullRollingRestartTests extends ElasticsearchIntegrationTest { // make sure the cluster state is green, and all has been recovered assertTimeout(client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setTimeout("1m").setWaitForGreenStatus().setWaitForRelocatingShards(0).setWaitForNodes("3")); + logger.info("--> stopped two nodes, verifying data"); refresh(); for (int i = 0; i < 10; i++) { assertHitCount(client().prepareCount().setQuery(matchAllQuery()).get(), 2000l); @@ -118,6 +120,7 @@ public class FullRollingRestartTests extends ElasticsearchIntegrationTest { // make sure the cluster state is green, and all has been recovered assertTimeout(client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setTimeout("1m").setWaitForYellowStatus().setWaitForRelocatingShards(0).setWaitForNodes("1")); + logger.info("--> one node left, verifying data"); refresh(); for (int i = 0; i < 10; i++) { assertHitCount(client().prepareCount().setQuery(matchAllQuery()).get(), 2000l);