-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Snapshot + Restore] Fix error handling for repositories API #103723
[Snapshot + Restore] Fix error handling for repositories API #103723
Conversation
Pinging @elastic/kibana-stack-management (Team:Stack Management) |
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.
Tested locally, code LGTM!
import type { | ||
SnapshotGetRepositoryResponse, | ||
SnapshotRepositorySettings, | ||
} from '@elastic/elasticsearch/api/types'; |
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.
+++++++++++++++++++++++++++
Merging now to make FF |
💔 Backport failed
To backport manually run: |
Thanks @cjcenizal! Re: backport failure. I think we might need to wait for #103693 to be merged into 7.x first. I was hitting issues with CI earlier, but hopefully this next run should be green 🤞 . |
Backport PR: #103814 |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Fixes #103673
This appears to be a regression that only made it to master, although it will now need to be backported to align with the work done in #103331. There was a test that checked it, but it was not set up correctly and was falsely passing.
To manually test, you can stub the ES snapshots API request so that it will fail (quickest/easiest), or you can set up a failed repository with snapshots to trigger an actual error. This involves manually altering the
index-N
file in your local repository so that it becomes invalid. The repository details panel should still show, but without the snapshot count.