-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework AutoFollowIT.testAutoFollowSearchableSnapshotsFails (#74498)
The test AutoFollowIT.testAutoFollowSearchableSnapshotsFails was added in #70580 in order to test that mounted indices of a leader cluster are not auto-followed in a follower cluster using CCR. This test sometimes fails because it expects 2 indices to be followed (the -regular and the -index indices) but not the mounted one. This looks wrong as the -index index is deleted soon after it is snapshotted, and this index only exist to create a snapshot that can be later mounted as an index in the leader cluster. This commit changes the test so that the -index index, the repository and the snapshot are created at the beginning of the test. Then the test creates the mounted index and the regular one and can now asserts that only the regular one was auto-followed. Closes #74486
- Loading branch information
Showing
1 changed file
with
47 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters