Skip to content

Commit

Permalink
Test fix, wait for auto follower to have stopped in the background
Browse files Browse the repository at this point in the history
Relates to #36761
  • Loading branch information
martijnvg committed Jan 11, 2019
1 parent 439944f commit c875ba9
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -139,7 +139,13 @@ public void testAutoFollowManyIndices() throws Exception {
assertThat(autoFollowStats.getNumberOfSuccessfulFollowIndices(), equalTo((long) expectedVal1));
});

// Delete auto follow pattern and make sure that in the background the auto follower has stopped
// then the leader index created after that should never be auto followed:
deleteAutoFollowPatternSetting();
assertBusy(() -> {
AutoFollowStats autoFollowStats = getAutoFollowStats();
assertThat(autoFollowStats.getAutoFollowedClusters().size(), equalTo(0));
});
createLeaderIndex("logs-does-not-count", leaderIndexSettings);

putAutoFollowPatterns("my-pattern", new String[] {"logs-*"});
Expand Down

0 comments on commit c875ba9

Please sign in to comment.