]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds/journal: make used_preallocated_ino crash more graceful
authorDhairya Parmar <dparmar@redhat.com>
Tue, 22 Aug 2023 10:22:42 +0000 (15:52 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Mon, 20 Nov 2023 10:41:30 +0000 (16:11 +0530)
commitd0f8426615a7a090b1e0d0eabb4b084def50ce83
treecadabddf5dea80fc413a294c45684b6a34d2d893
parent54fea2eefdc987fa89da9867f53e83b2dd7d6b43
mds/journal: make used_preallocated_ino crash more graceful

failure while removing used_preallocated_ino from session's prealloc_inos
set leads to backtrace pointing to interval_set:

interval_set<inodeno_t, std::map>::erase(inodeno_t, inodeno_t, std::function<bool (inodeno_t, inodeno_t)>)
EMetaBlob::replay(MDSRank*, LogSegment*, MDPeerUpdate*)
EUpdate::replay(MDSRank*)
MDLog::_replay_thread()
MDLog::ReplayThread::entry()

which is cumbersome to debug, while the actual root cause is still a WIP, make the crash more graceful
so that it helps while debugging.

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
src/mds/journal.cc