Project

General

Profile

Actions

Fix #8094

closed

MDS: be accurate about stats in check_rstats

Added by Greg Farnum about 10 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

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.

Actions

Also available in: Atom PDF