]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: fix wrong alarm 45320/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 30 Jul 2021 10:34:02 +0000 (19:34 +0900)
committerLaura Flores <lflores@redhat.com>
Wed, 9 Mar 2022 16:12:25 +0000 (16:12 +0000)
commitd67263087ecf7f342ccef4d45d2fc435fe320a8d
tree04073124f5476490675a3fe2d3c745435b44c974
parent2791c920d2f69181e3775d3bcd01f037bae90873
test: fix wrong alarm

This is not a serious bug. Please look over the following scenario
in HitSetWrite test:

1. append object, which causes to add the object to the hitset
2. call hit_set_get to get the object accessed recently
3. see the hitset to check that appened object is in the hitset

After step 2, assert occurs because plpg_on_pool_change,
which invokes hit_set_clear, is called
between step 1 and step 2.
So, the object this unit test want to add to the hitset
is not in the hitset sometime.
To avoid this, this commit adds retry logic.

Fixes: https://tracker.ceph.com/issues/45423
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
(cherry picked from commit 9a020694d43628a16e31f2e051088da5d98553e8)
src/test/librados/tier_cxx.cc