Project

General

Profile

Bug #39987

mds: MDCache::cow_inode does not cleanup unneeded client_snap_caps

Added by Zheng Yan 3 months ago. Updated about 2 months ago.

Status:
Pending Backport
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

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

Description

An user reported a bug that mds couldn't finish freezing dirfrag. Cache dump includes following entries.

[inode 0x1000056a9ad [112,head] /hpc/home/neda/ffpy_test/ffpy/interp_test/smooth_z0/z0meso.nc auth v5478173 s=2319190 n(v0 rc2019-05-18 07:15:27.742396 b2319190 1=1+0) (iversion lock) caps={62472=pAsLsXsFscr/-@115} | ptrwaiter=0 request=0 lock=0 caps=1 truncating=0 needsnapflush=0 dirtyparent=0 dirty=0 waiter=0 authpin=0 0x55c2475ed800]
...
[inode 0x1000056a9ad [10c,10d] /hpc/home/neda/ffpy_test/ffpy/interp_test/smooth_z0/z0meso.nc auth v5478065 s=2319190 n(v0 rc2019-05-17 19:36:50.430298 b2319190 1=1+0) (iversion lock) 0x55c24feeae00]
[inode 0x1000056a9ad [10e,111] /hpc/home/neda/ffpy_test/ffpy/interp_test/smooth_z0/z0meso.nc auth v5478171 ap=3+0 s=2319190 n(v0 rc2019-05-18 07:15:27.742396 b2319190 1=1+0)/n(v0 rc2019-05-17 19:36:50.430298 b2319190 1=1+0) (iauth snap->sync w=1) (ifile snap->sync w=1) (ixattr snap->sync w=1) (iversion lock) | ptrwaiter=0 request=0 lock=3 dirty=0 authpin=1 0x55c24c07d800]

It's likely that inode 0x1000056a9ad [10c,111] was COWed and head_in->split_need_snapflush contained no items in range [10e, 111]


Related issues

Copied to fs - Backport #40444: mimic: mds: MDCache::cow_inode does not cleanup unneeded client_snap_caps New
Copied to fs - Backport #40445: nautilus: mds: MDCache::cow_inode does not cleanup unneeded client_snap_caps In Progress

History

#1 Updated by Patrick Donnelly 3 months ago

  • Priority changed from Normal to High
  • Target version set to v15.0.0
  • Start date deleted (05/21/2019)
  • Source set to Community (user)
  • Component(FS) MDS added

#2 Updated by Zheng Yan 3 months ago

  • Status changed from New to Need Review
  • Pull request ID set to 28190

#3 Updated by Patrick Donnelly 2 months ago

  • Status changed from Need Review to Pending Backport
  • Assignee set to Zheng Yan

#4 Updated by Zheng Yan 2 months ago

  • Status changed from Pending Backport to Need Review

#6 Updated by Patrick Donnelly about 2 months ago

  • Status changed from Need Review to Pending Backport

#7 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #40444: mimic: mds: MDCache::cow_inode does not cleanup unneeded client_snap_caps added

#8 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #40445: nautilus: mds: MDCache::cow_inode does not cleanup unneeded client_snap_caps added

Also available in: Atom PDF