]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: cleanup truncating inodes when standby replay mds trim log segments 28686/head
authorYan, Zheng <zyan@redhat.com>
Fri, 21 Jun 2019 08:24:51 +0000 (16:24 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 21 Jun 2019 09:00:57 +0000 (17:00 +0800)
commit32121878dd0eef11e481162ebf924a14a91dd341
treea3dc1bf629245d2d19d80a7a3b1fcae74cc10ad3
parentf8102f5c433d47e093823905b28d32939503d56a
mds: cleanup truncating inodes when standby replay mds trim log segments

Standby replay mds first trims expired log segments, then replays new
log segments. It's possible a 'truncate_start' log event is in expired,
but its 'truncate_finish' counterpart is the new log segments. When mds
replays the 'truncate_finish' log event, log segment that contains the
'truncate_start' is already trimmed, so mds does nothing. This causes
leak of Inode::PIN_TRUNCATING and trigger assertion when removing
corresponding inode.

Fixes: https://tracker.ceph.com/issues/40477
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc