From 2711bb8f3dce1b7d19c5d4a2b7c2d64928df97a1 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 17 Mar 2021 11:52:05 -0400 Subject: [PATCH] test: reduce number of threads to 32 in LibCephFS.ShutdownRace We're still occasionally hitting file descriptor limits when running this test. Reduce the thread count to 32 for now, since it was possible to reproduce the original problem with 10 or so threads. Fixes: https://tracker.ceph.com/issues/49559 Signed-off-by: Jeff Layton (cherry picked from commit 5aec283a1c33b6c21f877a27f57a1bc03b4894a0) --- src/test/libcephfs/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index e74e99740979..8d37754bc7d8 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -2028,7 +2028,7 @@ static void shutdown_racer_func() // See tracker #20988 TEST(LibCephFS, ShutdownRace) { - const int nthreads = 128; + const int nthreads = 32; std::thread threads[nthreads]; // Need a bunch of fd's for this test -- 2.47.3