From: xie xingguo Date: Sat, 19 Aug 2017 02:05:36 +0000 (+0800) Subject: mon/PGMap: fix "0 stuck requests are blocked > 4096 sec" warn X-Git-Tag: v12.2.0~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17215%2Fhead;p=ceph.git mon/PGMap: fix "0 stuck requests are blocked > 4096 sec" warn There are test cases I saw Ceph complained about: 2017-08-19 01:02:22.393763 mon.a mon.0 172.21.15.108:6789/0 279 : cluster [ERR] Health check failed: 0 stuck requests are blocked > 4096 sec (REQUEST_STUCK) Signed-off-by: xie xingguo (cherry picked from commit 364178e71622be032b10273a845af4373278cb0c) --- diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index 9ec7d8f8a834..a18a0c9de8e7 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -3188,7 +3188,7 @@ void PGMap::get_health_checks( } if (!error_detail.empty()) { ostringstream ss; - ss << warn << " stuck requests are blocked > " + ss << error << " stuck requests are blocked > " << err_age << " sec"; auto& d = checks->add("REQUEST_STUCK", HEALTH_ERR, ss.str()); d.detail.swap(error_detail);