Project

General

Profile

Fix #8094

MDS: be accurate about stats in check_rstats

Added by Greg Farnum over 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
04/14/2014
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:

Description

We see occasional crashes in CDir::check_rstats function, on

assert(get_num_head_items() == (fnode.fragstat.nfiles + fnode.fragstat.nsubdirs));

There's a problem with that assert: get_num_head_items() is only looking at items in cache. That means that if we do have any real stat issues, we're missing them in the noise. Fix the checks to be accurate.

History

#1 Updated by Zheng Yan over 5 years ago

  • Status changed from New to Verified
  • Priority changed from High to Normal

#2 Updated by Greg Farnum about 3 years ago

  • Status changed from Verified to Resolved
  • Assignee set to Zheng Yan
  • Component(FS) MDS added

Zheng fixed this ages ago.

Also available in: Atom PDF