-
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
Support v7 response format for get-snapshots API #69108
Comments
Pinging @elastic/es-distributed (Team:Distributed) |
so for v7 response: if the failedResponse was not empty, then I would return the exception - I would not even iterate the successfulResponses. I don't expect for singleRepo, singleSnapshot api to return mix of successful and failed response in v7. Is this assumption ok? now if someone would try to use What do you think? |
We discussed this with Armin and there is a chance that there possibly won't be a breaking change for the get snapshots. |
This PR returns the get snapshots API to the 7.x format (and transport client behavior) and enhances it for requests that ask for multiple repositories. The changes for requests that target multiple repositories are: * Add `repository` field to `SnapshotInfo` and REST response * Add `failures` map alongside `snapshots` list instead of returning just an exception response as done for single repo requests * Pagination now works across repositories instead of being per repository for multi-repository requests closes #69108 closes #43462
This PR returns the get snapshots API to the 7.x format (and transport client behavior) and enhances it for requests that ask for multiple repositories. The changes for requests that target multiple repositories are: * Add `repository` field to `SnapshotInfo` and REST response * Add `failures` map alongside `snapshots` list instead of returning just an exception response as done for single repo requests * Pagination now works across repositories instead of being per repository for multi-repository requests closes elastic#69108 closes elastic#43462
In #42090 we changed the response format for the get-snapshots action in 8.0. When the work to support versioned response formats lands, we should revisit this breaking change and make sure we continue to return the older format if requested.
The text was updated successfully, but these errors were encountered: