-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Remove IncompatibleSnapshots Logic from Codebase #44096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove IncompatibleSnapshots Logic from Codebase #44096
Conversation
* The incompatible snapshots logic was created to track 1.x snapshots that became incompatible with 2.x * It serves no purpose at this point * It adds an additional GET request to every loading of RepositoryData (from loading the incompatible snapshots blob)
|
Pinging @elastic/es-distributed |
|
Jenkins run elasticsearch-ci/packaging-sample |
|
Jenkins run elasticsearch-ci/1 |
tlrx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'm happy to see these gone
| } else { | ||
| throw new ElasticsearchParseException("start object expected"); | ||
| } | ||
| return new RepositoryData(this.genId, this.snapshotIds, this.snapshotStates, this.indexSnapshots, incompatibleSnapshotIds); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can remove incompatibleSnapshotIds from RepositoryData too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right ... on it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the field and all users of it :)
tlrx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
thanks @tlrx :) |
* The incompatible snapshots logic was created to track 1.x snapshots that became incompatible with 2.x * It serves no purpose at this point * It adds an additional GET request to every loading of RepositoryData (from loading the incompatible snapshots blob)
* The incompatible snapshots logic was created to track 1.x snapshots that became incompatible with 2.x * It serves no purpose at this point * It adds an additional GET request to every loading of RepositoryData (from loading the incompatible snapshots blob)
* For elastic#44630, this is already fixed in 7.4+ via elastic#44096 so I'd just mute it in 7.3 and 7.2 * The failure in in elastic#44630 is an exclusive result of of concurrently trying to create the `incompatible-snapshots` snapshots blob whihc isn't an issue in production because the blob would exist there anyway
* Mute testParallelRestoreOperations on 7.3 * For #44630, this is already fixed in 7.4+ via #44096 so I'd just mute it in 7.3 and 7.2, 6.8 * The failure in in #44630 is an exclusive result of of concurrently trying to create the `incompatible-snapshots` snapshots blob whihc isn't an issue in production because the blob would exist there anyway
* Mute testParallelRestoreOperations on 7.2 * For elastic#44630, this is already fixed in 7.4+ via elastic#44096 so I'd just mute it in 7.3 and 7.2, 6.8 * The failure in in elastic#44630 is an exclusive result of of concurrently trying to create the `incompatible-snapshots` snapshots blob whihc isn't an issue in production because the blob would exist there anyway
* Mute testParallelRestoreOperations on 6.8 * For elastic#44630, this is already fixed in 7.4+ via elastic#44096 so I'd just mute it in 7.3 and 7.2, 6.8 * The failure in in elastic#44630 is an exclusive result of of concurrently trying to create the `incompatible-snapshots` snapshots blob whihc isn't an issue in production because the blob would exist there anyway
* Mute testParallelRestoreOperations on 7.2 * For #44630, this is already fixed in 7.4+ via #44096 so I'd just mute it in 7.3 and 7.2, 6.8 * The failure in in #44630 is an exclusive result of of concurrently trying to create the `incompatible-snapshots` snapshots blob whihc isn't an issue in production because the blob would exist there anyway
* Mute testParallelRestoreOperations on 6.8 * For #44630, this is already fixed in 7.4+ via #44096 so I'd just mute it in 7.3 and 7.2, 6.8 * The failure in in #44630 is an exclusive result of of concurrently trying to create the `incompatible-snapshots` snapshots blob whihc isn't an issue in production because the blob would exist there anyway
* As a result of elastic#44096 this test shouldn't fail anymore on `master` and `7.4`+ so we should reenable it there * For older versions we won't backport that change so the tests should stay disabled there * Closes elastic#44671
* As a result of elastic#44096 this test shouldn't fail anymore on `master` and `7.4`+ so we should reenable it there * For older versions we won't backport that change so the tests should stay disabled there * Closes elastic#44671
became incompatible with 2.x
RepositoryData(from loading the incompatible snapshots blob)