-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Make restore support multi-project #131661
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
base: main
Are you sure you want to change the base?
Conversation
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
I will be updating tests like |
params -> Iterators.concat(Iterators.single((builder, ignored) -> builder.field("id", projectMetadata.id()))) | ||
params -> Iterators.concat( | ||
Iterators.single((ToXContent) (builder, p) -> builder.field("id", projectMetadata.id())), | ||
projectMetadata.toXContentChunked(params) | ||
) |
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.
Fixing a silly bug from #130000 ...
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.
It all looks like just passing project ID to me. Am I missing something, is there something else to check for? I do have a couple of small questions.
if (metadata.persistentSettings() != null) { | ||
assert deserializeProjectMetadata == false || metadata.persistentSettings().isEmpty() |
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.
should this be (deserializeProjectMetadata == false && projectId.equals(DEFAULT))
?
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.
also I assume we're not restoring settings from the metadata for the project since they're not in metadata?
This PR makes the restore process project aware and unmute relevant tests. The later requires TransportRecoveryAction to be project aware which is done in this PR as well.
Relates: #130000