Actions
Bug #938
closedmds: rstats mismatch
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
easily triggering this with ./csyn --syn makedirs 4 4 4 and restarting mds after a minute or so
2011-03-25 09:24:50.930143 7fb53fca0910 mds0.cache.ino(1) * [dir 1 / [2,head] auth v=624 cv=624/0 dir_auth=0 ap=1+0+1 state=1610612802|complete f(v0 m2011-03-25 09:21:05.494155 2=0+2) n(v89 rc2011-03-25 09:23:37.325427 12179=10135+2044)/n(v89 rc2011-03-25 09:23:22.069381 10957=9120+1837) hs=1+0,ss=0+0 dirty=1 | child subtree dirty authpin 0x184e000] 2011-03-25 09:24:50.930152 7fb53fca0910 mds0.cache.dir(1) project_fnode 0x5536240 2011-03-25 09:24:50.930159 7fb53fca0910 mds0.cache.dir(1) assimilate_dirty_rstat_inodes 2011-03-25 09:24:50.930166 7fb53fca0910 mds0.cache.dir(1) assimilate_dirty_rstat_inodes done 2011-03-25 09:24:50.930176 7fb53fca0910 mds0.cache.ino(1) * rstat n(v89 rc2011-03-25 09:23:37.325427 12179=10135+2044) 2011-03-25 09:24:50.930186 7fb53fca0910 mds0.cache.ino(1) * accounted_rstat n(v89 rc2011-03-25 09:23:22.069381 10957=9120+1837) 2011-03-25 09:24:50.930193 7fb53fca0910 mds0.cache.ino(1) * dirty_old_rstat {} 2011-03-25 09:24:50.930200 7fb53fca0910 mds0.cache project_rstat_frag_to_inode [2,head] 2011-03-25 09:24:50.930210 7fb53fca0910 mds0.cache frag rstat n(v89 rc2011-03-25 09:23:37.325427 12179=10135+2044) 2011-03-25 09:24:50.930218 7fb53fca0910 mds0.cache frag accounted_rstat n(v89 rc2011-03-25 09:23:22.069381 10957=9120+1837) 2011-03-25 09:24:50.930227 7fb53fca0910 mds0.cache delta n(v89 rc2011-03-25 09:23:37.325427 1222=1015+207) 2011-03-25 09:24:50.930237 7fb53fca0910 mds0.cache projecting to [2,head] n(v90 rc2011-03-25 09:23:22.069381 10957=9120+1837) 2011-03-25 09:24:50.930247 7fb53fca0910 mds0.cache result [2,head] n(v90 rc2011-03-25 09:23:37.325427 12179=10135+2044) 2011-03-25 09:24:50.930254 7fb53fca0910 mds0.cache.dir(1) get_num_head_items() = 1; fnode.fragstat.nfiles=0 fnode.fragstat.nsubdirs=2 2011-03-25 09:24:50.930262 7fb53fca0910 mds0.cache.dir(1) mismatch between head items and fnode.fragstat! printing dentries 2011-03-25 09:24:50.930285 7fb53fca0910 mds0.cache.dir(1) [dentry #1/syn.4108.0 [2,head] auth (dversion lock) v=623 ap=0+1 inode=0x183a120 | inodepin dirty 0x185e000] mds/CDir.cc: In function 'bool CDir::check_rstats()', in thread '0x7fb53fca0910' mds/CDir.cc: 225: FAILED assert(!g_conf.mds_debug_scatterstat || (get_num_head_items() == (fnode.fragstat.nfiles + fnode.fragstat.nsubdirs))) ceph version 0.25-435-g921cb06 (commit:921cb0617c81189b5ce30c349be22dcca4c54ad6) 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x56) [0xa214d2] 2: (CDir::check_rstats()+0x7a5) [0x922a95] 3: (CInode::finish_scatter_gather_update(int)+0x1872) [0x948de4] 4: (Locker::scatter_writebehind(ScatterLock*)+0x247) [0x8cbb4b] 5: (Locker::simple_sync(SimpleLock*, bool*)+0x3f3) [0x8d342b] 6: (Locker::scatter_nudge(ScatterLock*, Context*, bool)+0x451) [0x8d4409] 7: (Locker::scatter_tick()+0x233) [0x8d49a9] 8: (MDS::tick()+0x35d) [0x76e411] 9: (MDS::C_MDS_Tick::finish(int)+0x2f) [0x798ab3] 10: (SafeTimer::timer_thread()+0x1f8) [0xa1ef04] 11: (SafeTimerThread::entry()+0x19) [0xa210c5] 12: (Thread::_entry_func(void*)+0x20) [0x744029] 13: /lib/libpthread.so.0 [0x7fb5433ec73a] 14: (clone()+0x6d) [0x7fb54208969d]
Actions