]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: reduce number of threads to 32 in LibCephFS.ShutdownRace 40776/head
authorJeff Layton <jlayton@redhat.com>
Wed, 17 Mar 2021 15:52:05 +0000 (11:52 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Apr 2021 21:23:41 +0000 (23:23 +0200)
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>
(cherry picked from commit 5aec283a1c33b6c21f877a27f57a1bc03b4894a0)

src/test/libcephfs/test.cc

index ef43e1087050aa89a5d9d113544bc611b1e310c7..264679c0f3e950d4dc2e87e4db94e9eda5dcdd25 100644 (file)
@@ -2027,7 +2027,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