]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: wait for purge queue operations to finish 44063/head
authorVenky Shankar <vshankar@redhat.com>
Tue, 23 Nov 2021 09:37:01 +0000 (04:37 -0500)
committerVenky Shankar <vshankar@redhat.com>
Wed, 1 Dec 2021 04:15:41 +0000 (09:45 +0530)
commitd9c79983230a9237422998771db4b4c450aed949
treed9afd3bc8d432d9e998a8ab2a3b98a5d16dac49d
parentca23aef191d8739a4913ebd165f244783e419862
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>
qa/tasks/cephfs/test_fragment.py