From c871d688424b619599bebe709fe941f69f5bd4b7 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Fri, 7 Aug 2020 16:21:07 +0800 Subject: [PATCH] libcephfs: ignore restoring the open files limit 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 --- src/test/libcephfs/test.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index a7a6ffc7e15..dc4e627eeee 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -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) -- 2.47.3