]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: wait for purge queue operations to finish 44642/head
authorVenky Shankar <vshankar@redhat.com>
Tue, 23 Nov 2021 09:37:01 +0000 (04:37 -0500)
committerVenky Shankar <vshankar@redhat.com>
Tue, 18 Jan 2022 13:42:16 +0000 (08:42 -0500)
commite4039b98994589939c1e187d9c8a9e1c5f61756d
treee9a85abfbe6f12e70828b8cd7b0cce48e7ce44c5
parentaae0c4a4f1209fdd149d16c544252004eae8d535
qa: wait for purge queue operations to finish

TestFragmentation.test_deep_split relies on `num_strays`
to reach zero expecting that the purge threads would
have deleted the directory entries. However, checking
`num_strays` cannot be relied on since PurqeQueue merely
journals the purge item (see PurgeQueue::push) followed
by the StrayManager marking the stray as removed thereby
accounting `num_strays`.

So, add an additional condition to check if the purge
threads have finished processing items.

Fixes: http://tracker.ceph.com/issues/52487
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit d9c79983230a9237422998771db4b4c450aed949)
qa/tasks/cephfs/test_fragment.py