]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: reduce number of threads to 32 in LibCephFS.ShutdownRace 40192/head
authorJeff Layton <jlayton@redhat.com>
Wed, 17 Mar 2021 15:52:05 +0000 (11:52 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 17 Mar 2021 17:08:08 +0000 (13:08 -0400)
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 <jlayton@redhat.com>
src/test/libcephfs/test.cc

index b6bcf75d5317d2f23ab0d96e747d85fcd1e814e6..1dd28024b3e285f71a2e2c7f92b9c4227bc8059b 100644 (file)
@@ -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