]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: add reproducer for obs removal deadlock
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 Sep 2023 00:47:40 +0000 (20:47 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 6 Oct 2023 00:27:00 +0000 (20:27 -0400)
And hopefully this "config set" race test may catch future bugs!

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/workunits/mon/config.sh

index 9a62081c6680209ada70419a1a0821946844b0c4..7d97a452bd8949d9130bb66832a13af39bd6534f 100755 (executable)
@@ -130,6 +130,21 @@ rm -f $t1 $t2
 
 expect_false ceph config reset
 expect_false ceph config reset -1
+
+
+# test parallel config set
+# reproducer for https://tracker.ceph.com/issues/62832
+ceph config reset 0
+for ((try = 0; try < 10; try++)); do
+    set +x
+    for ((i = 0; i < 100; i++)); do
+        # Use a config that will get "handled" by the Objecter instantiated by the ceph binary
+        ceph config set client rados_mon_op_timeout $((i+300)) &
+    done 2> /dev/null
+    set -x
+    wait
+done
+
 # we are at end of testing, so it's okay to revert everything
 ceph config reset 0