From: Patrick Donnelly Date: Fri, 22 Sep 2023 00:47:40 +0000 (-0400) Subject: qa: add reproducer for obs removal deadlock X-Git-Tag: v17.2.8~482^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=58d1f9dd057faf1c515ec69340be17b2ce507bbf;p=ceph.git qa: add reproducer for obs removal deadlock And hopefully this "config set" race test may catch future bugs! Signed-off-by: Patrick Donnelly (cherry picked from commit cd1833ab152d0231c1c6f3685238f4fcd3284f6e) --- diff --git a/qa/workunits/mon/config.sh b/qa/workunits/mon/config.sh index 9a62081c668..7d97a452bd8 100755 --- a/qa/workunits/mon/config.sh +++ b/qa/workunits/mon/config.sh @@ -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