Project

General

Profile

Bug #23958

mds: scrub doesn't always return JSON results

Added by Patrick Donnelly 8 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
fsck/damage handling
Target version:
Start date:
05/01/2018
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:

Description

On a vstart cluster:

pdonnell@senta02 ~/ceph/build$ bin/ceph daemon mds.b scrub_path / force recursive
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
pdonnell@senta02 ~/ceph/build$ bin/ceph daemon mds.b scrub_path / force recursive
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
pdonnell@senta02 ~/ceph/build$ bin/ceph daemon mds.b scrub_path / 
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
{
    "performed_validation": true,
    "passed_validation": true,
    "backtrace": {
        "checked": true,
        "passed": true,
        "read_ret_val": 0,
        "ondisk_value": "(2)0x1:[]//",
        "memoryvalue": "(2)0x1:[]//",
        "error_str": "" 
    },
    "raw_stats": {
        "checked": true,
        "passed": true,
        "read_ret_val": 0,
        "ondisk_value.dirstat": "f()",
        "ondisk_value.rstat": "n(v0 1=0+1)",
        "memory_value.dirrstat": "f()",
        "memory_value.rstat": "n(v0 1=0+1)",
        "error_str": "" 
    },
    "return_code": 0
}

Related issues

Copied to fs - Backport #25037: mimic: mds: scrub doesn't always return JSON results Resolved
Copied to fs - Backport #25038: luminous: mds: scrub doesn't always return JSON results Resolved

History

#1 Updated by Zheng Yan 8 months ago

recursive scrub is async, it does not return anything

#2 Updated by Patrick Donnelly 8 months ago

Zheng Yan wrote:

recursive scrub is async, it does not return anything

Good point, thanks. Even so, we shoudl return something so that json parsers don't blow up without input.

#3 Updated by Patrick Donnelly 7 months ago

  • Assignee set to Patrick Donnelly

#4 Updated by Patrick Donnelly 7 months ago

  • Target version changed from v13.0.0 to v14.0.0
  • Backport changed from luminous to mimic,luminous

#5 Updated by Patrick Donnelly 5 months ago

  • Assignee changed from Patrick Donnelly to Venky Shankar

#6 Updated by Venky Shankar 5 months ago

  • Status changed from New to Need Review

#7 Updated by Patrick Donnelly 5 months ago

  • Status changed from Need Review to Pending Backport

#8 Updated by Patrick Donnelly 5 months ago

  • Copied to Backport #25037: mimic: mds: scrub doesn't always return JSON results added

#9 Updated by Patrick Donnelly 5 months ago

  • Copied to Backport #25038: luminous: mds: scrub doesn't always return JSON results added

#10 Updated by Nathan Cutler 4 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF