Skip to content

Handle deleted source index in allocation deciders#140699

Merged
elasticsearchmachine merged 11 commits intoelastic:mainfrom
ywangd:es-140630-fix
Jan 19, 2026
Merged

Handle deleted source index in allocation deciders#140699
elasticsearchmachine merged 11 commits intoelastic:mainfrom
ywangd:es-140630-fix

Conversation

@ywangd
Copy link
Member

@ywangd ywangd commented Jan 15, 2026

Allocation decicers should not throw exception when the source index of a resize operation is concurrently deleted. This PR ensures it.

Resolves #140630

Allocation decicers should not throw exception when the source index of
a resize operation is concurrently deleted. This PR ensures it.

Resolves: elastic#140630
@ywangd ywangd requested a review from nicktindall January 15, 2026 02:09
@ywangd ywangd added >bug :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) auto-backport Automatically create backport pull requests when merged v9.3.0 v9.4.0 v9.2.5 labels Jan 15, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. label Jan 15, 2026
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@nicktindall nicktindall left a comment

Choose a reason for hiding this comment

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

LGTM

@ywangd ywangd added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 16, 2026
@elasticsearchmachine
Copy link
Collaborator

Hi @ywangd, I've updated the changelog YAML for you.

@elasticsearchmachine elasticsearchmachine merged commit dc3b7f5 into elastic:main Jan 19, 2026
36 checks passed
@ywangd ywangd deleted the es-140630-fix branch January 19, 2026 04:05
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Jan 19, 2026
Allocation decicers should not throw exception when the source index of
a resize operation is concurrently deleted. This PR ensures it.

Resolves elastic#140630
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.3
9.2
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Jan 19, 2026
Allocation decicers should not throw exception when the source index of
a resize operation is concurrently deleted. This PR ensures it.

Resolves elastic#140630
elasticsearchmachine pushed a commit that referenced this pull request Jan 21, 2026
Allocation decicers should not throw exception when the source index of
a resize operation is concurrently deleted. This PR ensures it.

Resolves #140630
elasticsearchmachine pushed a commit that referenced this pull request Jan 21, 2026
…140870)

* Handle deleted source index in allocation deciders (#140699)

Allocation decicers should not throw exception when the source index of
a resize operation is concurrently deleted. This PR ensures it.

Resolves #140630

* fix missing utils class

* fix test
spinscale pushed a commit to spinscale/elasticsearch that referenced this pull request Jan 21, 2026
Allocation decicers should not throw exception when the source index of
a resize operation is concurrently deleted. This PR ensures it.

Resolves elastic#140630
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. v9.2.5 v9.3.0 v9.4.0

3 participants