Skip to content

osd: Correct missing list on divergent merge of partial writes - #68727

Merged
ljflores merged 2 commits into
ceph:mainfrom
aainscow:wip_75962
May 27, 2026
Merged

ljflores merged 2 commits into
ceph:mainfrom
aainscow:wip_75962

Conversation

@aainscow

@aainscow aainscow commented May 3, 2026 •

Copy link
Copy Markdown
Contributor

With recent fixes to divergent log merging, a regression was introduced whereby a partial write would be rolled forward, updating the missing list, then not rolled back during divergent log merge.

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

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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.

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@aainscow
aainscow marked this pull request as ready for review May 6, 2026 10:54
@aainscow
aainscow requested a review from a team as a code owner May 6, 2026 10:54
@aainscow aainscow assigned bill-scales and unassigned bill-scales May 8, 2026
@aainscow
aainscow requested a review from bill-scales May 8, 2026 15:08
@NitzanMordhai

Copy link
Copy Markdown
Contributor

@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 - as you've got to re-base can you fix the comment in TestECFailoverWithPeering to reference the correct tracker ticker

Comment thread src/osd/PGLog.h
}

if (missing.is_missing(hoid)) {
/// Case 3)

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.

ACK: If the only divergent updates are partial writes and the object is missing then we still need to update the missing list

Comment thread src/osd/PGLog.h
}
}
if (entries.empty()) {
if (!prior_version_opt) {

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.

ACK: Even if entries is empty we still need to continue for case 3) below

* Test rollback after a sequence of blocked full-stripe and chunk writes.
* This is a similar scenario to the previous test, but we force the shard
* to do a sync, rather than async recovery at the end.
* Recreate for tracker https://tracker.ceph.com/issues/75211

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.

aainscow added 2 commits May 19, 2026 13:31
…ist when merged.

When a log was applied for a partial write to an object that is async recovering, the
log will be rolled forward and the missing list updated.

If this log becomes divergent, then we must rollback the update to the missing list
in the merge.

Fixes: https://tracker.ceph.com/issues/75962
Signed-off-by: Alex Ainscow <[email protected]>
This function is difficult to review, because of the use of tabs. This change replaces each tab with 8 spaces.

Signed-off-by: Alex Ainscow <[email protected]>
@ljflores

Copy link
Copy Markdown
Member

@aainscow were the changes trivial here? It's unclear if this needs to be retested.

@aainscow

Copy link
Copy Markdown
Contributor Author

@ljflores It was a comment change only, in a test harness, so no need to retest.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

@aainscow Testing has been completed. If a re-run is needed, please add the needs-qa label; otherwise, kindly merge the PR.

@ljflores
ljflores merged commit a502b26 into ceph:main May 27, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/26520926392

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

Labels

backport-complete A backport was necessary, but all work has been completed. core TESTED tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants