]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: drop racy assert in test_tasks_recovery() 68190/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 9 Mar 2026 11:57:28 +0000 (12:57 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Apr 2026 16:49:03 +0000 (18:49 +0200)
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>
(cherry picked from commit 8116eaa57ba1895ec25139d8d62319c22f868c87)

qa/workunits/rbd/cli_generic.sh

index bd2a50d7c491521d9b3082e29b9b740885a116fe..8563a113ca4b7e7bad1cd1f7797006c15f0da33c 100755 (executable)
@@ -1711,7 +1711,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