Skip to content

Comments

Revert "Return NOT_PREFERRED decisions in allocation explain (#137228)"#140175

Closed
joshua-adams-1 wants to merge 5 commits intoelastic:mainfrom
joshua-adams-1:revert-allocation-explain-new-tv
Closed

Revert "Return NOT_PREFERRED decisions in allocation explain (#137228)"#140175
joshua-adams-1 wants to merge 5 commits intoelastic:mainfrom
joshua-adams-1:revert-allocation-explain-new-tv

Conversation

@joshua-adams-1
Copy link
Contributor

#137228 is suspected to break the nightly performance benchmarks. However, since it introduced a new TransportVersion ADD_NOT_PREFERRED_ALLOCATION_DECISION, a simple git revert is not sufficient. This change introduces a reversion TransportVersion REVERT_ADD_NOT_PREFERRED_ALLOCATION_DECISION which undoes the above change, and this in time will be unreverted when the problem is resolved

…#137228)"

elastic#137228 is suspected to break the nightly performance benchmarks.
However, since it introduced a new TransportVersion
`ADD_NOT_PREFERRED_ALLOCATION_DECISION`, a simple git revert is not
sufficient. This change introduces a reversion TransportVersion
`REVERT_ADD_NOT_PREFERRED_ALLOCATION_DECISION` which undoes the above
change, and this in time will be unreverted when the problem is resolved
@joshua-adams-1 joshua-adams-1 self-assigned this Jan 5, 2026
@joshua-adams-1 joshua-adams-1 added >bug :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) labels Jan 5, 2026
@joshua-adams-1 joshua-adams-1 requested a review from prdoyle January 5, 2026 16:17
@elasticsearchmachine
Copy link
Collaborator

Hi @joshua-adams-1, I've created a changelog YAML for you.

@@ -1 +1 @@
search_response_origin_cluster_label,9255000
revert_add_not_preferred_allocation_decision,9256000
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh, I think there's a file missing, if I'm not mistaken: this should be associated with another file called src/main/resources/transport/definitions/referable/revert_add_not_preferred_allocation_decision.csv.

Did you use the Gradle transport version task to generate this?

I might have to tag in @jdconrad to confirm.

Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC, that file falls under the radar, since it's newly generated and must be manually found and git added. So it might be sitting in Joshua's file directory.

Copy link
Contributor

Choose a reason for hiding this comment

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

@DiannaHohensee is correct. That's what I would check first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Sorry, I missed that when pushing

Copy link
Contributor

@prdoyle prdoyle left a comment

Choose a reason for hiding this comment

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

The transport version portion of this looks correct.

@DiannaHohensee
Copy link
Contributor

This can be closed now. We added a series of fixes instead of reverting.

6630582
a5ab0ca
3d81e05

Thanks for taking a whack at this, Joshua. It was a gnarly problem.

@joshua-adams-1 joshua-adams-1 deleted the revert-allocation-explain-new-tv branch January 9, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants