Skip to content
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

Simplify BwC for UUIDs in RepositoryData #69335

Merged

Conversation

original-brownbear
Copy link
Member

We don't need to separately handle BwC for these two fields since they
were both introduced in 7.12.

We don't need to separately handle BwC for these two fields since they
were both introduced in `7.12`.
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Feb 22, 2021
@elasticmachine
Copy link
Collaborator

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

@@ -404,28 +406,10 @@ public RepositoryData withGenId(long newGeneration) {
}

/**
* Make a copy of this instance with the given UUID and all other fields unchanged.
*/
public RepositoryData withUuid(String uuid) {
Copy link
Member Author

@original-brownbear original-brownbear Feb 22, 2021

Choose a reason for hiding this comment

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

No point exposing this IMO. This can just be set as an implementation detail if a cluster uuid is set for the first time, no need to expose it separately.

@original-brownbear
Copy link
Member Author

@elasticmachine update branch

@original-brownbear
Copy link
Member Author

Jenkins run elasticsearch-ci/2 unrelated and known

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, thanks for the cleanup. NB this needs to go to 7.12 and 7.13 now.

@original-brownbear
Copy link
Member Author

Thanks David!

@original-brownbear original-brownbear merged commit c86d9e3 into elastic:master Feb 22, 2021
@original-brownbear original-brownbear deleted the dry-up-snapshot-uuids branch February 22, 2021 14:42
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Feb 22, 2021
We don't need to separately handle BwC for these two fields since they
were both introduced in `7.12`.
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Feb 22, 2021
We don't need to separately handle BwC for these two fields since they
were both introduced in `7.12`.
original-brownbear added a commit that referenced this pull request Feb 22, 2021
We don't need to separately handle BwC for these two fields since they
were both introduced in `7.12`.
original-brownbear added a commit that referenced this pull request Feb 22, 2021
We don't need to separately handle BwC for these two fields since they
were both introduced in `7.12`.
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. v7.12.0 v7.13.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants