mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
ceph_test_rados_api_tier: dump hitset that we fail to decode
See http://tracker.ceph.com/issues/17945 Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
fde141e2c9
commit
b52d602510
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user