Project

General

Profile

Actions

Bug #69092

closed
IF IF

libcephfs client cache trimming might remove dentries attached to opened dir inode.

Bug #69092: libcephfs client cache trimming might remove dentries attached to opened dir inode.

Added by Igor Fedotov about 2 years ago. Updated 3 months ago.

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

0%

Source:
Community (dev)
Backport:
squid, reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, libcephfs
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-7481-gcb5a62fbad
Released In:
v20.2.0~1158
Upkeep Timestamp:
2026-08-27T18:17:19+00:00

Description

This e.g. mght result in broken ceph_statxat() result: one would access 'head' object information instead of snapshotted one after cache trimming even when snapshot root folder has been opened and resulting descriptor provided to ceph_statxat call.

This negatively impacts both snapdiff and cephfs-mirroring functionality when handling large directory trees. E.g. cephfs-mirroring might produce wrong target directory tree - files missing or something.


Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #69905: reef: libcephfs client cache trimming might remove dentries attached to opened dir inode.RejectedDhairya Parmar

Actions
Copied to CephFS - Backport #69906: squid: libcephfs client cache trimming might remove dentries attached to opened dir inode.ResolvedDhairya Parmar

Actions

AP Updated by Alexander Patrakov about 2 years ago Actions #2

We have actually seen a few times how cephfs-mirror mirrors a few terabytes of data in a volatile directory and then erases everything and starts over. Might this be related?

Also concerning the mismirroring incidents associated with this: I think that Ceph should provide a graceful way of recovering from incorrect snapshots on the destination side that does not involve retransferring everything from scratch.

IF Updated by Igor Fedotov almost 2 years ago Actions #3

  • Backport set to squid, reef

MC Updated by Milind Changire almost 2 years ago Actions #4

  • Assignee set to Venky Shankar

IF Updated by Igor Fedotov almost 2 years ago Actions #5

  • Status changed from New to Fix Under Review
  • Assignee changed from Venky Shankar to Igor Fedotov
  • Pull request ID set to 60909

VS Updated by Venky Shankar almost 2 years ago Actions #6

  • Category set to Correctness/Safety
  • Priority changed from Normal to Urgent
  • Target version set to v20.0.0
  • Source set to Community (dev)

VS Updated by Venky Shankar almost 2 years ago Actions #7

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot almost 2 years ago Actions #8

  • Copied to Backport #69905: reef: libcephfs client cache trimming might remove dentries attached to opened dir inode. added

UB Updated by Upkeep Bot almost 2 years ago Actions #9

  • Copied to Backport #69906: squid: libcephfs client cache trimming might remove dentries attached to opened dir inode. added

UB Updated by Upkeep Bot almost 2 years ago Actions #10

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #11

  • Merge Commit set to cb5a62fbad0201c5aedf5b43eb9bf67cc5b500c5
  • Fixed In set to v19.3.0-7481-gcb5a62fbad0
  • Upkeep Timestamp set to 2025-07-08T18:12:57+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • Fixed In changed from v19.3.0-7481-gcb5a62fbad0 to v19.3.0-7481-gcb5a62fbad02
  • Upkeep Timestamp changed from 2025-07-08T18:12:57+00:00 to 2025-07-14T15:23:04+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #13

  • Fixed In changed from v19.3.0-7481-gcb5a62fbad02 to v19.3.0-7481-gcb5a62fbad
  • Upkeep Timestamp changed from 2025-07-14T15:23:04+00:00 to 2025-07-14T21:08:54+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #14

  • Released In set to v20.2.0~1158
  • Upkeep Timestamp changed from 2025-07-14T21:08:54+00:00 to 2025-11-01T01:01:22+00:00

UB Updated by Upkeep Bot 3 months ago Actions #15

  • Status changed from Pending Backport to Resolved
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:01:22+00:00 to 2026-08-27T18:17:19+00:00
Actions

Also available in: PDF Atom