-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't mark backing indices of overlapping data streams as conflicts. (#…
…69668) Backport #69625) to 7.11 branch. Today when upgrading from 7.9.x or 7.10.x version to 7.11.x or later and if two data (or more) data streams exist that have a overlapping prefix and one data stream name ends with the a date suffix that matches with backing index date pattern (uuuu.MM.dd) then new upgraded nodes may refuse to join. Essentially preventing upgrade of the cluster to continue. In this case the validation logic in `Metadata#validateDataStreams(...)` confuses backing indices of one data stream as regular indices and thinks these indices collide with another data stream. In this validation only incorrectly fails if {data-stream-name} and {data-steam-name}-{uuuu.MM.dd} name exist and later has been rolled over more than the former and then upgrade cluster to 7.11+. A 7.10.2 cluster with: Data stream 1: logs-foobar Backing indices: logs-foobar-000001 Data stream 2: logs-foobar-2021.01.13 Backing indices: logs-foobar-2021.01.13-000001, logs-foobar-2021.01.13-000002 When upgrading, then the new node will not join, because it thinks that 'logs-foobar-2021.01.13-000002' index collides with the backing index space of data stream 'logs-foobar'. This change tries to address this.
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 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
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
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