From: Ilya Dryomov Date: Mon, 9 Mar 2026 11:57:28 +0000 (+0100) Subject: qa/workunits/rbd: drop racy assert in test_tasks_recovery() X-Git-Tag: v21.0.0~15^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F67896%2Fhead;p=ceph.git qa/workunits/rbd: drop racy assert in test_tasks_recovery() 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 --- diff --git a/qa/workunits/rbd/cli_generic.sh b/qa/workunits/rbd/cli_generic.sh index 36fb254eb379..964663b0c21a 100755 --- a/qa/workunits/rbd/cli_generic.sh +++ b/qa/workunits/rbd/cli_generic.sh @@ -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