]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix OnodeSizeTracking testing 12684/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 27 Dec 2016 11:39:51 +0000 (19:39 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 28 Dec 2016 01:56:04 +0000 (09:56 +0800)
[  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>
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);
 
   {