Project

General

Profile

Actions

Bug #75232

closed
VS VS

tools/cephfs: cephfs-data-scan tools can miss recovery

Bug #75232: tools/cephfs: cephfs-data-scan tools can miss recovery

Added by Venky Shankar 9 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:

0%

Source:
Q/A
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
tools
Labels (FS):
offline
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-1918-g68e07e9f46
Released In:
v21.2.0~311
Upkeep Timestamp:
2026-10-24T01:45:24+00:00

Description

This bug got introduced with https://github.com/ceph/ceph/pull/65495

Progress tracking requires knowing the object count in data or the metadata pool. librados's get_pool_stats() API isn't designed to be accurate and therefore could return zero (0) when an object is just created in a pool. This is precisely what the test case does -- adds an extra data pool and set layout, wipe the metadata pool and try to rebuild the metadata pool from the data pool. scan_extents will create 0th object in the first data pool. scan_inodes step fetches the object count from the first data pool and that turns out to be zero (as get_pool_stats() isn't accurate) and thereby the entire scan_inodes step is skipped.


Related issues 1 (0 open — 1 closed)

Related to CephFS - Bug #75084: Test failure: test_progress_event_unique_per_process (tasks.cephfs.test_data_scan.TestDataScan.test_progress_event_unique_per_process)ResolvedVenky Shankar

Actions

VS Updated by Venky Shankar 9 months ago Actions #1

  • Subject changed from Test failure: test_extra_data_pool_rebuild_few_files (tasks.cephfs.test_data_scan.TestDataScan.test_extra_data_pool_rebuild_few_files) to tools/cephfs: cephfs-data-scan tools can miss recovery

Generalizing this tracker as cephfs-data-scan hit a regression in https://github.com/ceph/ceph/pull/65495

/a/vshankar-2026-02-25_09:28:04-fs-wip-vshankar-testing-20260224.100235-testing-default-trial/69471

VS Updated by Venky Shankar 9 months ago Actions #2

  • Status changed from New to Triaged
  • Assignee set to Venky Shankar

I have a wip fix for this.

VS Updated by Venky Shankar 9 months ago Actions #3

  • Status changed from Triaged to Fix Under Review
  • Pull request ID set to 67709

UB Updated by Upkeep Bot 6 months ago Actions #4

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 68e07e9f46db8f45e490c7210cccd1ce4b845251
  • Fixed In set to v21.0.0-1918-g68e07e9f46
  • Upkeep Timestamp set to 2026-06-02T10:14:10+00:00

VS Updated by Venky Shankar 5 months ago Actions #5

  • Related to Bug #75084: Test failure: test_progress_event_unique_per_process (tasks.cephfs.test_data_scan.TestDataScan.test_progress_event_unique_per_process) added

UB Updated by Upkeep Bot about 1 month ago Actions #6

  • Released In set to v21.2.0~311
  • Upkeep Timestamp changed from 2026-06-02T10:14:10+00:00 to 2026-10-24T01:45:24+00:00
Actions

Also available in: PDF Atom