CCR/TEST: Adjust testFailOverOnFollower
CI passed but the result is outdated after PR #34366 was merged.
This commit is contained in:
parent
842bf55497
commit
630d5514a5
|
@ -625,7 +625,6 @@ public class IndexFollowingIT extends CCRIntegTestCase {
|
||||||
String leaderIndexSettings = getIndexSettings(1, numberOfReplicas,
|
String leaderIndexSettings = getIndexSettings(1, numberOfReplicas,
|
||||||
singletonMap(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), "true"));
|
singletonMap(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), "true"));
|
||||||
assertAcked(leaderClient().admin().indices().prepareCreate("leader-index").setSource(leaderIndexSettings, XContentType.JSON));
|
assertAcked(leaderClient().admin().indices().prepareCreate("leader-index").setSource(leaderIndexSettings, XContentType.JSON));
|
||||||
ensureLeaderGreen("leader-index");
|
|
||||||
AtomicBoolean stopped = new AtomicBoolean();
|
AtomicBoolean stopped = new AtomicBoolean();
|
||||||
Thread[] threads = new Thread[between(1, 8)];
|
Thread[] threads = new Thread[between(1, 8)];
|
||||||
AtomicInteger docID = new AtomicInteger();
|
AtomicInteger docID = new AtomicInteger();
|
||||||
|
@ -744,7 +743,7 @@ public class IndexFollowingIT extends CCRIntegTestCase {
|
||||||
flushingOnFollower.join();
|
flushingOnFollower.join();
|
||||||
indexingOnLeader.join();
|
indexingOnLeader.join();
|
||||||
assertSameDocCount("leader-index", "follower-index");
|
assertSameDocCount("leader-index", "follower-index");
|
||||||
unfollowIndex("follower-index");
|
pauseFollow("follower-index");
|
||||||
}
|
}
|
||||||
|
|
||||||
private CheckedRunnable<Exception> assertTask(final int numberOfPrimaryShards, final Map<ShardId, Long> numDocsPerShard) {
|
private CheckedRunnable<Exception> assertTask(final int numberOfPrimaryShards, final Map<ShardId, Long> numDocsPerShard) {
|
||||||
|
|
Loading…
Reference in New Issue