]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: print subtrees only after merge 17712/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 4 Sep 2017 18:36:00 +0000 (11:36 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 14 Sep 2017 03:30:02 +0000 (20:30 -0700)
commit24fe250bb5fbb8546f5fb280cca10162e3aabb2f
treed5dc4c0fa0b6e5e13df7a1d079cfaf135f53fd0c
parentba746cd14ddd70a4f24a734f83ff9d276dd327d1
mds: print subtrees only after merge

During up:resolve, the MDS tries to merge each subtree with its parent. During
testing, QE found that many thousands of subtrees in a directory (made possible
using pins) would cause the MDS to spend minutes printing out subtree maps to
the debug log. This causes the heartbeat code to consider the MDS as stalled so
beacons are no longer sent to the mons resulting in the MDS being removed from
the rank.

A more complete solution to this problem is to selectively print subtrees
relating to the operation (e.g. the subtree and its parents).

Fixes: http://tracker.ceph.com/issues/21221
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1485783
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit d0747a37fd06053b2206bb9a952f7ab77f0db2f0)
src/mds/MDCache.cc