]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix OnodeSizeTracking testing 16112/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 27 Dec 2016 11:39:51 +0000 (19:39 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 4 Jul 2017 20:26:58 +0000 (22:26 +0200)
[  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 <xie.xingguo@zte.com.cn>
(cherry picked from commit 1d97862f716ce24bfe227b192ecc5e1eb3f76757)

src/test/objectstore/store_test.cc

index 9c149ec6ebf2f15664fd1576e72c1c9d3a3ca45e..87a1afe60c29f07d721ff95c3e54747022c2e472 100644 (file)
@@ -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);
 
   {