Skip to content

Commit

Permalink
Merge pull request #745 from opensearch-project/monu-aws-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
monusingh-1 authored Mar 23, 2023
2 parents 7ce444f + db28924 commit f9746e5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,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 @@ -207,12 +209,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 @@ -450,4 +450,4 @@ class UpdateAutoFollowPatternIT: MultiClusterRestTestCase() {
assertEquals(HttpStatus.SC_OK.toLong(), persistentConnectionResponse.statusLine.statusCode.toLong())
}

}
}

0 comments on commit f9746e5

Please sign in to comment.