]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: ignore restoring the open files limit 36515/head
authorXiubo Li <xiubli@redhat.com>
Fri, 7 Aug 2020 08:21:07 +0000 (16:21 +0800)
committerXiubo Li <xiubli@redhat.com>
Sun, 9 Aug 2020 08:10:10 +0000 (16:10 +0800)
Let's just ignore restoring the open files limit, the kernel will
defer releasing the file descriptors and then the process will be
possibly reachthe open files limit.

Fixes: https://tracker.ceph.com/issues/43039
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/test/libcephfs/test.cc

index a7a6ffc7e1556d7ad81caa05960ecb1322364d10..dc4e627eeeee4f53e8a735fb78e545dea1e0f1ef 100644 (file)
@@ -2017,7 +2017,13 @@ TEST(LibCephFS, ShutdownRace)
 
   for (int i = 0; i < nthreads; ++i)
     threads[i].join();
-  ASSERT_EQ(setrlimit(RLIMIT_NOFILE, &rold), 0);
+  /*
+   * Let's just ignore restoring the open files limit,
+   * the kernel will defer releasing the file descriptors
+   * and then the process will be possibly reachthe open
+   * files limit. More detail, please see tracer#43039
+   */
+//  ASSERT_EQ(setrlimit(RLIMIT_NOFILE, &rold), 0);
 }
 
 static void get_current_time_utimbuf(struct utimbuf *utb)