Skip to content

Fix Incorrect Concurrent SnapshotException on Master Failover (#54877)#55448

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:54877-7.x
Apr 20, 2020
Merged

Fix Incorrect Concurrent SnapshotException on Master Failover (#54877)#55448
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:54877-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

If we run into an INIT state snapshot and the current master didn't create it, it will be removed anyway.
=> no need to have that block another snapshot from starting.
This has practical relevance because on master fail-over after snapshot INIT but before start, the create snapshot request will be retried by the client (as it's a transport master node action) and needlessly fail with an unexpected exception (snapshot clearly didn't exist so it's confusing to the user).

This allowed making two disruption type tests stricter

backport of #54877

If we run into an INIT state snapshot and the current master didn't create it, it will be removed anyway.
=> no need to have that block another snapshot from starting.
This has practical relevance because on master fail-over after snapshot INIT but before start, the create snapshot request will be retried by the client (as it's a transport master node action) and needlessly fail with an unexpected exception (snapshot clearly didn't exist so it's confusing to the user).

This allowed making two disruption type tests stricter
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Apr 20, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@original-brownbear original-brownbear merged commit 258f4b3 into elastic:7.x Apr 20, 2020
@original-brownbear original-brownbear deleted the 54877-7.x branch April 20, 2020 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