Skip to content

Remove obsolete Metadata BWC for repositories #129685

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

ywangd
Copy link
Member

@ywangd ywangd commented Jun 19, 2025

When migrating RepositoriesMetadata from cluster custom to project custom (#125398), we needed temporary BWC handling for clusters running on a version that is before this change but after the initial MP change. Such a cluster can only exist in the serverless environment which has progressed way past any applicable versions. Therefore we no longer need the BWC handling and this PR removes it.

Relates: #125398

When migrating RepositoriesMetadata from cluster custom to project
custom, we needed temporary BWC handling for clusters running on a
version that is before this change but after the initial MP change. Such
a cluster can only exist in the serverless environment which has
progressed way past any applicable versions. Therefore we no longer need
the BWC handling and this PR removes it.

Relates: elastic#125398
@ywangd ywangd requested a review from DaveCTurner June 19, 2025 06:13
@ywangd ywangd added >non-issue :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v9.1.0 labels Jun 19, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Jun 19, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@ywangd
Copy link
Member Author

ywangd commented Jun 19, 2025

As commented on the original PR (#125398 (comment)), most of the wire BWC handling becomes dead code now that Serverless has rolled past the applicable version ranges. I think it is better to remove them now and avoid ever releasing them for Stateful. It's not strictly necessary, but feels nice to do so.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to this file is mostly reverting the changes in #125398. It's not an actual revert because a small number of xcontent changes are still needed.

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ywangd ywangd added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 19, 2025
@ywangd
Copy link
Member Author

ywangd commented Jun 19, 2025

@elasticmachine update branch

@ywangd
Copy link
Member Author

ywangd commented Jun 19, 2025

@elasticmachine update branch

@elasticsearchmachine elasticsearchmachine merged commit 0e83b19 into elastic:main Jun 20, 2025
27 checks passed
@ywangd ywangd deleted the remove-obsolete-metadata-bwc-for-repositories branch June 20, 2025 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue Team:Distributed Coordination Meta label for Distributed Coordination team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants