-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Simplify BwC for UUIDs in RepositoryData #69335
Conversation
We don't need to separately handle BwC for these two fields since they were both introduced in `7.12`.
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) { |
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.
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.
@elasticmachine update branch |
Jenkins run elasticsearch-ci/2 unrelated and known |
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 for the cleanup. NB this needs to go to 7.12 and 7.13 now.
Thanks David! |
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`.
We don't need to separately handle BwC for these two fields since they
were both introduced in
7.12
.