Skip to content

Ignore BlobStoreIndexShardSnapshot#indexVersion #96450

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

Conversation

DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented May 31, 2023

We track the commit generation as indexVersion in each BlobStoreIndexShardSnapshot, apparently for "compatibility with v1.0". This value has been unused for a long time, so with this commit we stop tracking it and replace it with a constant 0 in the metadata blob to satisfy the parsing in older versions.

We track the commit generation as `indexVersion` in each
`BlobStoreIndexShardSnapshot`, apparently for "compatibility with v1.0".
This value has been unused for a long time, so with this commit we stop
tracking it and drop it from the metadata blob. This has no bwc
implications because the metadata is parsed in a manner that does not
require this field to be present.
@DaveCTurner DaveCTurner added the test-full-bwc Trigger full BWC version matrix tests label May 31, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@elasticsearchmachine elasticsearchmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label May 31, 2023
@DaveCTurner
Copy link
Contributor Author

This has no bwc implications because the metadata is parsed in a manner that does not require this field to be present.

Oops, not true, it defaults to -1 if missing, but we assert it must be ≥= 0 in the constructor. So I put it back with value 0.

@DaveCTurner
Copy link
Contributor Author

The full-bwc failures are unrelated flakiness, so this is good to review.

@DaveCTurner DaveCTurner merged commit 4617095 into elastic:main May 31, 2023
@DaveCTurner DaveCTurner deleted the 2023-05-31-ignore-BlobStoreIndexShardSnapshot-indexVersion branch May 31, 2023 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >tech debt test-full-bwc Trigger full BWC version matrix tests v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants