CCR/TEST: Adjust testFailOverOnFollower

CI passed but the result is outdated after PR #34366 was merged.
This commit is contained in:
Nhat Nguyen 2018-10-19 15:05:22 -04:00
parent 842bf55497
commit 630d5514a5
1 changed files with 1 additions and 2 deletions

View File

@ -625,7 +625,6 @@ public class IndexFollowingIT extends CCRIntegTestCase {
String leaderIndexSettings = getIndexSettings(1, numberOfReplicas,
singletonMap(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), "true"));
assertAcked(leaderClient().admin().indices().prepareCreate("leader-index").setSource(leaderIndexSettings, XContentType.JSON));
ensureLeaderGreen("leader-index");
AtomicBoolean stopped = new AtomicBoolean();
Thread[] threads = new Thread[between(1, 8)];
AtomicInteger docID = new AtomicInteger();
@ -744,7 +743,7 @@ public class IndexFollowingIT extends CCRIntegTestCase {
flushingOnFollower.join();
indexingOnLeader.join();
assertSameDocCount("leader-index", "follower-index");
unfollowIndex("follower-index");
pauseFollow("follower-index");
}
private CheckedRunnable<Exception> assertTask(final int numberOfPrimaryShards, final Map<ShardId, Long> numDocsPerShard) {