From b68535a13e35a35b89f00469f451cf171eb72497 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 21 Sep 2023 20:47:40 -0400 Subject: [PATCH] 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) --- qa/workunits/mon/config.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.39.5