From: Xiubo Li Date: Fri, 7 Aug 2020 08:21:07 +0000 (+0800) Subject: libcephfs: ignore restoring the open files limit X-Git-Tag: v14.2.22~28^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f191eb907354349a1d4f61389eb7994d8e103bad;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 (cherry picked from commit c871d68) --- diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index 857d54408181..f76c871c9a3c 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -2083,7 +2083,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)