Skip to content

tools/cephfs: always execute scan_{extents,inodes,frags} and cleanup - #67709

Merged
vshankar merged 1 commit into
ceph:mainfrom
vshankar:wip-cephfs-data-scan-zero-objects
Jun 2, 2026
Merged

vshankar merged 1 commit into
ceph:mainfrom
vshankar:wip-cephfs-data-scan-zero-objects

Conversation

@vshankar

@vshankar vshankar commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Even when the number of objects reported from pool stats is zero. Pool stats metrics are delayed and cannot be fully relied on for accuracy. Trusting the number of objects (esp. when reported as zero) could result in missed steps during data-scan execution.

So, we try to do two things now:

  1. ProgressTracker::display_progress() will display progress only when the total items exceeds to the number of progress items.
  2. Refresh total object count during each iteration of processing objects. This might be a bit too much, so we probably need to do this periodically rather than on each iteration.

Fixes: http://tracker.ceph.com/issues/75083

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.

@vshankar
vshankar requested a review from edwinzrodriguez March 9, 2026 09:40
@vshankar vshankar added the cephfs Ceph File System label Mar 9, 2026

@edwinzrodriguez edwinzrodriguez 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.

Looks good

@vshankar

Copy link
Copy Markdown
Contributor Author

@vshankar

Copy link
Copy Markdown
Contributor Author

@vshankar

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@vshankar
vshankar force-pushed the wip-cephfs-data-scan-zero-objects branch from 7a72fb4 to 66e344f Compare May 13, 2026 04:53
@vshankar

Copy link
Copy Markdown
Contributor Author

(fixed a compiler warning)

Even when the number of objects reported from pool stats is zero.
Pool stats metrics are delayed and cannot be fully relied on for
accuracy. Trusting the number of objects (esp. when reported as
zero) could result in missed steps during data-scan execution.

So, we try to do two things now:

1. ProgressTracker::display_progress() will display progress only
when the total items exceeds to the number of progress items.
2. Refresh total object count during each iteration of processing
objects. This might be a bit too much, so we probably need to
do this periodically rather than on each iteration.

Fixes: http://tracker.ceph.com/issues/75083
Signed-off-by: Venky Shankar <[email protected]>
@vshankar
vshankar force-pushed the wip-cephfs-data-scan-zero-objects branch from 66e344f to 014a446 Compare May 14, 2026 09:29
@vshankar

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@vshankar

Copy link
Copy Markdown
Contributor Author

This PR has been removed from wip-vshankar-testing-20260513.092143.

@vshankar

Copy link
Copy Markdown
Contributor Author

This PR has been added to main integration testing by vshankar started 2026-05-26-08:07.

@vshankar
vshankar merged commit 68e07e9 into ceph:main Jun 2, 2026
6 checks passed
@github-actions

github-actions Bot commented Jun 2, 2026

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/26813158299

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

Labels

cephfs Ceph File System

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants