Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Recovering a blob from snapshot may take some time. If the recovery is cancelled during this time, there is no point in continuing, and indeed we must give up as soon as possible to avoid holding the shard lock for longer than necessary. This commit checks for cancellation on every read from the blob store, rather than just between blobs.

Closes #95525

Recovering a blob from snapshot may take some time. If the recovery is cancelled during this time, there is no point in continuing, and indeed we must give up as soon as possible to avoid holding the shard lock for longer than necessary. This commit checks for cancellation on every read from the blob store, rather than just between blobs. Closes elastic#95525
@DaveCTurner DaveCTurner added >bug :Distributed Indexing/Recovery Anything around constructing a new shard, either from a local or a remote source. v8.9.0 labels May 30, 2023
@DaveCTurner DaveCTurner requested review from fcofdez and pxsalehi May 30, 2023 07:59
@elasticsearchmachine elasticsearchmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label May 30, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@elasticsearchmachine
Copy link
Collaborator

Hi @DaveCTurner, I've created a changelog YAML for you.

Copy link
Contributor

@fcofdez fcofdez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this 👍

@DaveCTurner DaveCTurner merged commit 651ec81 into elastic:main May 30, 2023
@DaveCTurner DaveCTurner deleted the 2023-05-30-promptly-fail-recovery-from-snapshot branch May 30, 2023 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed Indexing/Recovery Anything around constructing a new shard, either from a local or a remote source. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.9.0

3 participants