From: Sage Weil Date: Thu, 17 Nov 2016 22:18:47 +0000 (-0600) Subject: ceph_test_rados_api_tier: dump hitset that we fail to decode X-Git-Tag: v11.1.0~234^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12057%2Fhead;p=ceph.git ceph_test_rados_api_tier: dump hitset that we fail to decode See http://tracker.ceph.com/issues/17945 Signed-off-by: Sage Weil --- diff --git a/src/test/librados/tier.cc b/src/test/librados/tier.cc index 3f9a5b33d10..fb8e2b70987 100755 --- a/src/test/librados/tier.cc +++ b/src/test/librados/tier.cc @@ -2286,12 +2286,16 @@ TEST_F(LibRadosTwoPoolsPP, HitSetWrite) { c->wait_for_complete(); c->release(); - //std::cout << "bl len is " << bl.length() << "\n"; - //bl.hexdump(std::cout); - //std::cout << std::endl; - - bufferlist::iterator p = bl.begin(); - ::decode(hitsets[i], p); + try { + bufferlist::iterator p = bl.begin(); + ::decode(hitsets[i], p); + } + catch (buffer::error& e) { + std::cout << "failed to decode hit set; bl len is " << bl.length() << "\n"; + bl.hexdump(std::cout); + std::cout << std::endl; + throw e; + } // cope with racing splits by refreshing pg_num if (i == num_pg - 1)