mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[TEST] filter out unassigned shards
This commit is contained in:
parent
46461c7730
commit
b3be23ea11
@ -101,7 +101,8 @@ public class AckClusterUpdateSettingsTests extends ElasticsearchIntegrationTest
|
||||
for (IndexRoutingTable indexRoutingTable : clusterState.routingTable()) {
|
||||
for (IndexShardRoutingTable indexShardRoutingTable : indexRoutingTable) {
|
||||
for (ShardRouting shardRouting : indexShardRoutingTable) {
|
||||
if (clusterState.nodes().get(shardRouting.currentNodeId()).id().equals(excludedNodeId)) {
|
||||
assert clusterState.nodes() != null;
|
||||
if (shardRouting.unassigned() == false && clusterState.nodes().get(shardRouting.currentNodeId()).id().equals(excludedNodeId)) {
|
||||
//if the shard is still there it must be relocating and all nodes need to know, since the request was acknowledged
|
||||
//reroute happens as part of the update settings and we made sure no throttling comes into the picture via settings
|
||||
assertThat(shardRouting.relocating(), equalTo(true));
|
||||
|
Loading…
x
Reference in New Issue
Block a user