Skip to content

Use correct recovery priorities#155002

Draft
PeteGillinElastic wants to merge 3 commits into
elastic:mainfrom
PeteGillinElastic:dnrt-accurate-recovery-priorities
Draft

Use correct recovery priorities#155002
PeteGillinElastic wants to merge 3 commits into
elastic:mainfrom
PeteGillinElastic:dnrt-accurate-recovery-priorities

Conversation

@PeteGillinElastic

Copy link
Copy Markdown
Member

This updates ShardRouting.newUnassigned() and ShardRouting.relocate() so that we always pass in the correct RecoveryPriority rather than always using UNASSIGNED_EXISTING or RELOCATION_CAN_REMAIN_NO.

We already correctly propagated the priority from the unassigned or relocating ShardRouting to the initializing ShardRouting. That logic is unaffected by this change.

@PeteGillinElastic PeteGillinElastic added >non-issue :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. labels Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. >non-issue v9.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants