-
Notifications
You must be signed in to change notification settings - Fork 1.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
[BUG] Get snapshot API returns incorrect response #6820
Labels
Comments
gaobinlong
added a commit
to gaobinlong/OpenSearch
that referenced
this issue
Mar 27, 2023
…a non-existing snapshot (opensearch-project#6820) Signed-off-by: Gao Binlong <gbinlong@amazon.com>
6 tasks
6 tasks
dblock
pushed a commit
that referenced
this issue
Apr 6, 2023
…vailable=true (#6839) * Fix bug for Get Snapshot API to return correct response when getting a non-existing snapshot (#6820) Signed-off-by: Gao Binlong <gbinlong@amazon.com> * modify change log Signed-off-by: Gao Binlong <gbinlong@amazon.com> * Modify changelog Signed-off-by: Gao Binlong <gbinlong@amazon.com> --------- Signed-off-by: Gao Binlong <gbinlong@amazon.com>
opensearch-trigger-bot bot
pushed a commit
that referenced
this issue
Apr 6, 2023
…vailable=true (#6839) * Fix bug for Get Snapshot API to return correct response when getting a non-existing snapshot (#6820) Signed-off-by: Gao Binlong <gbinlong@amazon.com> * modify change log Signed-off-by: Gao Binlong <gbinlong@amazon.com> * Modify changelog Signed-off-by: Gao Binlong <gbinlong@amazon.com> --------- Signed-off-by: Gao Binlong <gbinlong@amazon.com> (cherry picked from commit 8b34e5f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dblock
pushed a commit
that referenced
this issue
Apr 6, 2023
…vailable=true (#6839) (#7029) * Fix bug for Get Snapshot API to return correct response when getting a non-existing snapshot (#6820) * modify change log * Modify changelog --------- (cherry picked from commit 8b34e5f) Signed-off-by: Gao Binlong <gbinlong@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When calling Get snapshot API with setting
ignore_unavailable
parameter totrue
, if the snapshot does not exist, then this API will return all of the executing snapshots which are inIN_PROGRESS
state.To Reproduce
ignore_unavailable
parameter totrue
:GET _snapshot/test/xx?ignore_unavailable=true
then you can see that the response contains the snapshot which is executing and in
IN_PROGRESS
state.Expected behavior
Return empty response if the snapshot does not exist.
Screenshots
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: