Skip to content

Fix getSnapshotIndexMetaData Exception Behavior (#47488)#47496

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:47488-7.x
Oct 3, 2019
Merged

Fix getSnapshotIndexMetaData Exception Behavior (#47488)#47496
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:47488-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

@original-brownbear original-brownbear commented Oct 3, 2019

If we fail to read the global metadata in a snapshot
we would throw SnapshotMissingException but wouldn't
do so for the index metadata.
This is breaking SLM tests at a low rate because they
use SnapshotMissingException thrown from snapshot status APIs
to wait for a snapshot being gone.
Also, we should be consistent here in general and not leak the
NoSuchFileException to the transport layer for index meta.

Closes #46508

backport of #47488

If we fail to read the global metadata in a snapshot
we would throw `SnapshotMissingException` but wouldn't
do so for the index metadata.
This is breaking SLM tests at a low rate because they
use `SnapshotMissingException` thrown from snapshot status APIs
to wait for a snapshot being gone.
Also, we should be consistent here in general and not leak the
`NoSuchFileException` to the transport layer for index meta.

Closes #46508
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Oct 3, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@original-brownbear original-brownbear merged commit bac119f into elastic:7.x Oct 3, 2019
@original-brownbear original-brownbear deleted the 47488-7.x branch October 3, 2019 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants