]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: print subtrees only after merge
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 4 Sep 2017 18:36:00 +0000 (11:36 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 4 Sep 2017 18:37:40 +0000 (11:37 -0700)
commitd0747a37fd06053b2206bb9a952f7ab77f0db2f0
treeeef743dcb9162725da4519a423d6b6e27b4de2ea
parentaa27ac779144e62a7ff1b6456ebef3e027bc35c7
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>
src/mds/MDCache.cc