From 76fedab57612ea0e15d18729e779ec43bf830704 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 27 Dec 2016 19:39:51 +0800 Subject: [PATCH] os/bluestore: fix OnodeSizeTracking testing [ FAILED ] 1 test, listed below: [ FAILED ] ObjectStore/StoreTest.OnodeSizeTracking/2, where GetParam() = "bluestore" 1 FAILED TEST The above test failure happens as the bluestore mount() process will try to load all collections and put them into the coll_map, which will be also tracked as mempool::bluestore_meta_other. So total_bytes from mempool won't be equal to zero. Signed-off-by: xie xingguo (cherry picked from commit 1d97862f716ce24bfe227b192ecc5e1eb3f76757) --- src/test/objectstore/store_test.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 9c149ec6ebf2f..87a1afe60c29f 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -5596,7 +5596,6 @@ TEST_P(StoreTest, OnodeSizeTracking) { uint64_t total_bytes, total_bytes2; uint64_t total_onodes; get_mempool_stats(&total_bytes, &total_onodes); - ASSERT_EQ(total_bytes, 0u); ASSERT_EQ(total_onodes, 0u); { -- 2.39.5