Project

General

Profile

Cleanup #18584

osd: improper format for dumpping purged_snaps

Added by Chang Liu 4 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
OSD
Target version:
-
Start date:
01/18/2017
Due date:
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Release:
Needs Doc:
No

Description

./bin/ceph-objectstore-tool --data-path=./dev/osd1/ --dry-run --op info --pgid 2.4
{
    "pgid": "2.4",
    "last_update": "104'22",
    "last_complete": "104'22",
    "log_tail": "0'0",
    "last_user_version": 8,
    "last_backfill": "MAX",
    "last_backfill_bitwise": 0,
    "purged_snaps": "[]",  # my comment: here should be [], without `"`
    "history": {

code: https://github.com/ceph/ceph/blob/master/src/osd/osd_types.cc#L2854

History

#1 Updated by Chang Liu 4 months ago

Sorry, issue's type should be a "Cleanup", not a "Bug".

I'm working on this issue.

#2 Updated by Nathan Cutler 4 months ago

  • Tracker changed from Bug to Cleanup

#3 Updated by Chang Liu 2 months ago

 ./bin/ceph-objectstore-tool --data-path=./dev/osd1/ --dry-run --op info --pgid 2.4
{   
    "pgid": "2.4",
    "last_update": "13'8",
    "last_complete": "13'8",
    "log_tail": "0'0",
    "last_user_version": 8,
    "last_backfill": "MAX",
    "last_backfill_bitwise": 0,
    "purged_snaps": [
        "2,2" 
    ],

#5 Updated by Jos Collin about 1 month ago

  • Status changed from New to Resolved

The PR is merged

Also available in: Atom PDF