Skip to content

Commit 5001128

Browse files
authored
Fix CloseFollowerIndexIT (#105351) (#105355)
There's no particular reason that the closed follower index should be `RED` - if it is closed at a point where there are no indexing requests in flight then its shards can be assigned and it could even reach `GREEN` health. This commit fixes the problem by removing the bogus assertion. Closes #104865
1 parent a14ad5f commit 5001128

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/CloseFollowerIndexIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.elasticsearch.action.support.ActiveShardCount;
1313
import org.elasticsearch.action.support.master.AcknowledgedResponse;
1414
import org.elasticsearch.cluster.ClusterState;
15-
import org.elasticsearch.cluster.health.ClusterHealthStatus;
1615
import org.elasticsearch.cluster.metadata.IndexMetadata;
1716
import org.elasticsearch.cluster.metadata.MetadataIndexStateService;
1817
import org.elasticsearch.common.unit.ByteSizeValue;
@@ -110,7 +109,6 @@ public void testCloseAndReopenFollowerIndex() throws Exception {
110109
ClusterState clusterState = followerClient().admin().cluster().prepareState().get().getState();
111110
assertThat(clusterState.metadata().index("index2").getState(), is(IndexMetadata.State.CLOSE));
112111
assertThat(clusterState.getBlocks().hasIndexBlock("index2", MetadataIndexStateService.INDEX_CLOSED_BLOCK), is(true));
113-
assertThat(followerClient().admin().cluster().prepareHealth("index2").get().getStatus(), equalTo(ClusterHealthStatus.RED));
114112

115113
isRunning.set(false);
116114
for (Thread thread : threads) {

0 commit comments

Comments
 (0)