Project

General

Profile

Actions

Bug #24239

closed

cephfs-journal-tool: Importing a zero-length purge_queue journal breaks its integrity.

Added by yupeng chen almost 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
fsck/damage handling
Target version:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
tools
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When we were importing a zero-length purge_queue journal exported previously, the last object and
the following one were purged for removing potential junks.
However, in this case, no writing were actually performed because of the zero length, so the purged last object get lost permanently.

This can be fixed by purging the object following the last object, and by zeroing the last object
starting from the offset determined by the write_pos.

PR comes here:

https://github.com/ceph/ceph/pull/22144


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #24860: luminous: cephfs-journal-tool: Importing a zero-length purge_queue journal breaks its integrity.ResolvedJos CollinActions
Copied to CephFS - Backport #24861: mimic: cephfs-journal-tool: Importing a zero-length purge_queue journal breaks its integrity.ResolvedJos CollinActions
Actions

Also available in: Atom PDF