From: Xiubo Li Date: Fri, 7 Aug 2020 08:21:07 +0000 (+0800) Subject: libcephfs: ignore restoring the open files limit X-Git-Tag: v16.1.0~1409^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c871d688424b619599bebe709fe941f69f5bd4b7;p=ceph.git 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 --- diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index a7a6ffc7e155..dc4e627eeeee 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)