Skip to content

osdc: set used_replica on sub-op target in SplitOp::create - #71798

Merged
aainscow merged 1 commit into
ceph:mainfrom
CJamesIBM:cal_replica_direct_sub_reads_fix
Sep 30, 2026
Merged

aainscow merged 1 commit into
ceph:mainfrom
CJamesIBM:cal_replica_direct_sub_reads_fix

Conversation

@CJamesIBM

Copy link
Copy Markdown
Contributor

When constructing sub-ops that are directed to a replica, used_replica was being set on the parent op's target rather than the sub-op's own target. This meant _calc_target never saw the flag on the sub-op and legacy_change was not set when the target OSD was removed from the acting set, therefore the stale target guard failed to trigger a resend.

Fixes: https://tracker.ceph.com/issues/78921

Signed-off-by: Callum James <[email protected].

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

When constructing sub-ops that are directed to a replica, used_replica
was being set on the parent op's target rather than the sub-op's own
target. This meant _calc_target never saw the flag on the sub-op and
legacy_change was not set when the target OSD was removed from the
acting set, therefore the stale target guard failed to trigger a resend.

Signed-off-by: Callum James <[email protected]>
@CJamesIBM
CJamesIBM requested a review from aainscow September 15, 2026 10:17
@CJamesIBM CJamesIBM mentioned this pull request Sep 15, 2026
5 of 13 tasks

@bill-scales bill-scales left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath3-testing-20260918.154843-main.

@aainscow aainscow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@kamoltat

Copy link
Copy Markdown
Member

@aainscow
aainscow merged commit 2ac56c7 into ceph:main Sep 30, 2026
16 checks passed
kginonredhat pushed a commit to kginonredhat/ceph that referenced this pull request Sep 30, 2026
…eads_fix

osdc: set used_replica on sub-op target in SplitOp::create

Reviewed-by: Bill Scales <[email protected]>
Reviewed-by: Alex Ainscow <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants