Skip to content

Optimised EC: Ignore snapshot scrubbing on non-primary shards - #63843

Merged
ljflores merged 1 commit into
ceph:mainfrom
aainscow:ec_scrub_pr2
Jul 9, 2025
Merged

ljflores merged 1 commit into
ceph:mainfrom
aainscow:ec_scrub_pr2

Conversation

@aainscow

@aainscow aainscow commented Jun 10, 2025 •

Copy link
Copy Markdown
Contributor

https://tracker.ceph.com/issues/71815

New EC does not write SS_ATTR to the non primary shards (since it is not needed). The scrub code was, however, flagging up errors if SS_ATTR was not present.

This PR suppresses those error messages.

REVIEWERs: Only the latest commit needs review.

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

@aainscow

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@github-actions

Copy link
Copy Markdown

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

@ljflores

Copy link
Copy Markdown
Member

@aainscow looks like this needs a rebase.

@ljflores

Copy link
Copy Markdown
Member

jenkins retest this please

dout(15) << "_scan_snaps starts" << dendl;

for (auto i = smap.objects.rbegin(); i != smap.objects.rend(); ++i) {
if (!m_pg.get_is_nonprimary_shard(m_pg_whoami)) {

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.

My understanding on why SS_ATTR can be missed on non-primary shards is simply that the attrs update (resulting from e.g. PrimaryLogPG::_finish_ctx()) doesn't happen for them.

@aainscow

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@ljflores

ljflores commented Jul 8, 2025

Copy link
Copy Markdown
Member

jenkins retest this please

@ljflores

ljflores commented Jul 8, 2025

Copy link
Copy Markdown
Member

@aainscow I'm currently investigating a "stats mismatch" error that might be related to this PR:

/a/yuriw-2025-06-28_18:55:21-rados-wip-yuri-testing-2025-06-28-0812-distro-default-smithi/8355161

2025-06-28T21:00:07.734 INFO:teuthology.orchestra.run.smithi046.stdout:2025-06-28T20:58:17.522153+0000 osd.4 (osd.4) 40 : cluster [ERR] 3.1 scrub : stat mismatch, got 11/11 objects, 0/0 clones, 11/11 dirty, 0/0 omap, 0/0 pinned, 0/0 hit_set_archive, 0/0 whiteouts, 32408318/32643253 bytes, 0/0 manifest objects, 0/0 hit_set_archive bytes.

I'm rerunning the affected test 10x here: http://pulpito.ceph.com/lflores-2025-07-08_21:11:05-rados-wip-yuri-testing-2025-06-28-0812-distro-default-smithi/

Can you take a look while investigation is pending?

@aainscow

aainscow commented Jul 8, 2025

Copy link
Copy Markdown
Contributor Author

@aainscow I'm currently investigating a "stats mismatch" error that might be related to this PR:

/a/yuriw-2025-06-28_18:55:21-rados-wip-yuri-testing-2025-06-28-0812-distro-default-smithi/8355161

2025-06-28T21:00:07.734 INFO:teuthology.orchestra.run.smithi046.stdout:2025-06-28T20:58:17.522153+0000 osd.4 (osd.4) 40 : cluster [ERR] 3.1 scrub : stat mismatch, got 11/11 objects, 0/0 clones, 11/11 dirty, 0/0 omap, 0/0 pinned, 0/0 hit_set_archive, 0/0 whiteouts, 32408318/32643253 bytes, 0/0 manifest objects, 0/0 hit_set_archive bytes.

I'm rerunning the affected test 10x here: http://pulpito.ceph.com/lflores-2025-07-08_21:11:05-rados-wip-yuri-testing-2025-06-28-0812-distro-default-smithi/

Can you take a look while investigation is pending?

We will look tomorrow. We have been seeing this quite a bit with EC optimizations on and blaming new-EC-specific code, so a bit worrying that this is happening on old-EC.

@aainscow

aainscow commented Jul 9, 2025 •

Copy link
Copy Markdown
Contributor Author

(Re scrub issue) We have reviewed the failure and we are confident that this is not a regression from this PR. It is possible that other EC peering changes have caused this issue, so it needs some extra debug for when it next occurs.

@JonBailey1993 I believe is going to be looking into this in more detail and adding some more debugging, so we can catch it next time.

@ljflores

ljflores commented Jul 9, 2025

Copy link
Copy Markdown
Member

(Re scrub issue) We have reviewed the failure and we are confident that this is not a regression from this PR. It is possible that other EC peering changes have caused this issue, so it needs some extra debug for when it next occurs.

@JonBailey1993 I believe is going to be looking into this in more detail and adding some more debugging, so we can catch it next time.

I added a new ticket to track the issue here: https://tracker.ceph.com/issues/72051

@ljflores

ljflores commented Jul 9, 2025

Copy link
Copy Markdown
Member

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

Labels

core needs-qa no-backport-required Label that can be optionally added to show that we do not need to backport. wip-yuri-testing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants