Skip to content

[9.3] Fix PAUSED_FOR_NODE_REMOVAL shard blocking QUEUED promotion (#142637)#142672

Merged
elasticsearchmachine merged 2 commits intoelastic:9.3from
ywangd:backport/9.3/pr-142637
Feb 19, 2026
Merged

[9.3] Fix PAUSED_FOR_NODE_REMOVAL shard blocking QUEUED promotion (#142637)#142672
elasticsearchmachine merged 2 commits intoelastic:9.3from
ywangd:backport/9.3/pr-142637

Conversation

@ywangd
Copy link
Copy Markdown
Member

@ywangd ywangd commented Feb 19, 2026

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…142637)

When a snapshot with a PAUSED_FOR_NODE_REMOVAL shard is deleted, the
abort previously transitioned it directly to FAILED. This bypassed the
normal state propagation that promotes QUEUED shards, allowing a
subsequently created snapshot to incorrectly receive INIT instead of
QUEUED for the same shard, violating the ordering invariant.

Change abort to transition PAUSED_FOR_NODE_REMOVAL to ABORTED (an
active state) so that new snapshots correctly get QUEUED. The data
node detects the PAUSED local status on an ABORTED entry and reports
FAILED to the master, which triggers QUEUED promotion through the
existing state propagation.

(cherry picked from commit 3393f3a)
@ywangd ywangd added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v9.3.1 and removed v9.3.2 labels Feb 19, 2026
@elasticsearchmachine elasticsearchmachine merged commit 1327bfa into elastic:9.3 Feb 19, 2026
35 checks passed
@ywangd ywangd deleted the backport/9.3/pr-142637 branch February 19, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v9.3.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants