Skip to content

[8.6] Get repository metadata from the cluster state doesn't throw an exception if a repo is missing (#92914) #93106

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

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

gmarouli
Copy link
Contributor

Backport

This will backport the following commits from main to 8.6:

Questions ?

Please refer to the Backport tool documentation

…tion if a repo is missing (elastic#92914)

Change the implementation of `TransportGetRepositoriesAction#getRepositories` to report the found and missing repositories instead of throwing an exception when a repository is missing. When the get-snapshots action was extended to work across repositories, it was designed to report failures on a repository-by-repository basis. A missing repository is just another per-repository failure, so we report it but it doesn't interrupt the normal flow of the method.

(cherry picked from commit 9cd0b38)

# Conflicts:
#	server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/get/TransportGetSnapshotsAction.java
@gmarouli gmarouli force-pushed the backport/8.6/pr-92914 branch from 118e18e to 914ac05 Compare January 19, 2023 20:35
@gmarouli gmarouli added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 19, 2023
@elasticsearchmachine elasticsearchmachine merged commit 417d021 into elastic:8.6 Jan 19, 2023
@gmarouli gmarouli deleted the backport/8.6/pr-92914 branch January 19, 2023 21:15
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!) backport v8.6.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants