Skip to content

Commit

Permalink
Merge pull request #749 from opensearch-project/backport/backportt-74…
Browse files Browse the repository at this point in the history
…5-to-2.x
  • Loading branch information
monusingh-1 authored Mar 23, 2023
2 parents 72082ad + ac2040a commit 86a58a3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ class UpdateAutoFollowPatternIT: MultiClusterRestTestCase() {
}, 30, TimeUnit.SECONDS)
// Verify that existing index matching the pattern are replicated.
assertBusy ({
followerClient.waitForShardTaskStart(leaderIndexName)
followerClient.waitForShardTaskStart(leaderIndexName2)
Assertions.assertThat(followerClient.indices()
.exists(GetIndexRequest(leaderIndexName2), RequestOptions.DEFAULT))
.isEqualTo(true)
Expand All @@ -208,12 +210,10 @@ class UpdateAutoFollowPatternIT: MultiClusterRestTestCase() {
assert(key["num_success_start_replication"]!! as Int == 1)
}
assertTrue(af_stats.size == 2)
}, 30, TimeUnit.SECONDS)
}, 60, TimeUnit.SECONDS)
} finally {
followerClient.deleteAutoFollowPattern(connectionAlias, indexPatternName)
followerClient.deleteAutoFollowPattern(connectionAlias, indexPatternName2)
followerClient.waitForShardTaskStart(leaderIndexName)
followerClient.waitForShardTaskStart(leaderIndexName2)
}
}

Expand Down Expand Up @@ -451,4 +451,4 @@ class UpdateAutoFollowPatternIT: MultiClusterRestTestCase() {
assertEquals(HttpStatus.SC_OK.toLong(), persistentConnectionResponse.statusLine.statusCode.toLong())
}

}
}

0 comments on commit 86a58a3

Please sign in to comment.