Skip to content

Conversation

DiannaHohensee
Copy link
Contributor

@DiannaHohensee DiannaHohensee commented Oct 10, 2025

I was looking around in here for ES-12942, and thought this should be better.

@DiannaHohensee DiannaHohensee self-assigned this Oct 10, 2025
@DiannaHohensee DiannaHohensee marked this pull request as ready for review October 10, 2025 22:17
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Oct 10, 2025
}
}
if (allocation.isSimulating()) {
return allocation.decision(Decision.YES, NAME, "primary allocation is not throttled when simulating");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seemed silly to do an early return after counting primariesInRecovery, which isn't used. So I moved it up, save some cycles.

@DiannaHohensee DiannaHohensee added >non-issue :Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) Team:Distributed Coordination Meta label for Distributed Coordination team labels Oct 10, 2025
@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Oct 10, 2025
@elasticsearchmachine
Copy link
Collaborator

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

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

Labels

:Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >non-issue Team:Distributed Coordination Meta label for Distributed Coordination team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants