Browse Source

Fix test log info (#80982)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Viggo 3 years ago
parent
commit
f3ee38eb7f

+ 1 - 1
server/src/test/java/org/elasticsearch/cluster/routing/allocation/IndexBalanceTests.java

@@ -265,7 +265,7 @@ public class IndexBalanceTests extends ESAllocationTestCase {
             assertThat(clusterState.routingTable().index("test1").shard(i).replicaShards().get(0).state(), equalTo(STARTED));
             assertThat(clusterState.routingTable().index("test1").shard(i).replicaShards().get(0).state(), equalTo(STARTED));
         }
         }
 
 
-        logger.info("Add another node and perform rerouting, nothing will happen since primary not started");
+        logger.info("Add another node and perform rerouting, relocate shards to new node");
         clusterState = ClusterState.builder(clusterState).nodes(DiscoveryNodes.builder(clusterState.nodes()).add(newNode("node3"))).build();
         clusterState = ClusterState.builder(clusterState).nodes(DiscoveryNodes.builder(clusterState.nodes()).add(newNode("node3"))).build();
         newState = strategy.reroute(clusterState, "reroute");
         newState = strategy.reroute(clusterState, "reroute");
         assertThat(newState, not(equalTo(clusterState)));
         assertThat(newState, not(equalTo(clusterState)));

+ 1 - 1
server/src/test/java/org/elasticsearch/cluster/routing/allocation/RoutingNodesIntegrityTests.java

@@ -145,7 +145,7 @@ public class RoutingNodesIntegrityTests extends ESAllocationTestCase {
 
 
         clusterState = startInitializingShardsAndReroute(strategy, clusterState);
         clusterState = startInitializingShardsAndReroute(strategy, clusterState);
 
 
-        logger.info("Add another node and perform rerouting, nothing will happen since primary not started");
+        logger.info("Add another node and perform rerouting, relocate shards to new node");
         clusterState = ClusterState.builder(clusterState).nodes(DiscoveryNodes.builder(clusterState.nodes()).add(newNode("node3"))).build();
         clusterState = ClusterState.builder(clusterState).nodes(DiscoveryNodes.builder(clusterState.nodes()).add(newNode("node3"))).build();
         clusterState = strategy.reroute(clusterState, "reroute");
         clusterState = strategy.reroute(clusterState, "reroute");