]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: disallow dumping huge caches to formatter 25567/head
authorVenky Shankar <vshankar@redhat.com>
Thu, 8 Nov 2018 12:58:37 +0000 (18:28 +0530)
committerVenky Shankar <vshankar@redhat.com>
Mon, 17 Dec 2018 04:04:59 +0000 (23:04 -0500)
commit4f4a7e1260d3faadf5e70e5c79414d16af25cdf2
tree4590d88eb294bfbe8a01e0495813431f51660aa2
parent1532f324e6c9be198b8d02393866b2015dc29c3f
mds: disallow dumping huge caches to formatter

Dumping huge caches (~ 1G) to formatter causes mds to
hang or get terminated. Until the underlying issues is
fixed, disallow dumping cache if cache usage exceeds this
threshold. Also, Patrick feels a similar issue might be
hiding there for cache dumps to file when cache sizes
are really huge. This case has not been been reproduced
yet, hence, the limit for cache dumps to file is currently
kept not capped.

Fixes: http://tracker.ceph.com/issues/37608
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 6be2ce98c629d2cfe9d8443659e59600148b7675)

 Conflicts:
src/common/options.cc
src/mds/MDCache.cc

Fixed the config option type (`TYPE_UINT` instead of `TYPE_SIZE`)
as commit 7c25de3 is not in luminous (yet).
src/common/options.cc
src/mds/MDCache.cc
src/mds/MDSDaemon.cc