]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: drop racy assert in test_tasks_recovery() 67896/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 9 Mar 2026 11:57:28 +0000 (12:57 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 19 Mar 2026 13:50:00 +0000 (14:50 +0100)
Even though "ceph rbd task list" is executed immediately after
a successful "ceph rbd task add flatten", the operation may complete
in the interim and the task listing may come back empty legitimately.
Given that we are asserting that flatten actually occurs based on
"rbd info" output, there is no real need to try to briefly observe
the flatten task in the task list.

Fixes: https://tracker.ceph.com/issues/75209
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/workunits/rbd/cli_generic.sh

index 36fb254eb3790d14c0e433fccc07bdfdd17a56a3..964663b0c21acf96d530a4fbbb3672428f5e37c0 100755 (executable)
@@ -2061,7 +2061,6 @@ test_tasks_recovery() {
        ceph rbd task add flatten rbd2/clone1 && break
        sleep 10
     done
-    test "$(ceph rbd task list)" != "[]"
 
     for i in {1..12}; do
         rbd info rbd2/clone1 | grep 'parent: ' || break