Project

General

Profile

Actions

Bug #24239

closed
YC YC

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

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

Added by yupeng chen over 8 years ago. Updated over 8 years ago.

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

0%

Source:
Community (user)
Backport:
mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
tools
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

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 open — 2 closed)

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

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

Actions

PD Updated by Patrick Donnelly over 8 years ago Actions #1

  • Status changed from New to Fix Under Review
  • Priority changed from Normal to High
  • Target version set to v14.0.0
  • Backport set to mimic,luminous

PD Updated by Patrick Donnelly over 8 years ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Assignee set to yupeng chen

PD Updated by Patrick Donnelly over 8 years ago Actions #3

  • Copied to Backport #24860: luminous: cephfs-journal-tool: Importing a zero-length purge_queue journal breaks its integrity. added

PD Updated by Patrick Donnelly over 8 years ago Actions #4

  • Copied to Backport #24861: mimic: cephfs-journal-tool: Importing a zero-length purge_queue journal breaks its integrity. added

NC Updated by Nathan Cutler over 8 years ago Actions #5

  • Status changed from Pending Backport to Resolved
Actions

Also available in: PDF Atom