mirror of
https://github.com/ceph/ceph
synced 2025-03-10 10:19:26 +00:00
Merge pull request #44063 from vshankar/tr-52487
qa: wait for purge queue operations to finish Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
commit
4d2791a786
@ -214,11 +214,14 @@ class TestFragmentation(CephFSTestCase):
|
||||
|
||||
self.fs.mds_asok(['flush', 'journal'])
|
||||
|
||||
def _check_pq_finished():
|
||||
num_strays = self.fs.mds_asok(['perf', 'dump', 'mds_cache'])['mds_cache']['num_strays']
|
||||
pq_ops = self.fs.mds_asok(['perf', 'dump', 'purge_queue'])['purge_queue']['pq_executing']
|
||||
return num_strays == 0 and pq_ops == 0
|
||||
|
||||
# Wait for all strays to purge
|
||||
self.wait_until_equal(
|
||||
lambda: self.fs.mds_asok(['perf', 'dump', 'mds_cache']
|
||||
)['mds_cache']['num_strays'],
|
||||
0,
|
||||
self.wait_until_true(
|
||||
lambda: _check_pq_finished(),
|
||||
timeout=1200
|
||||
)
|
||||
# Check that the metadata pool objects for all the myriad
|
||||
|
Loading…
Reference in New Issue
Block a user