]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg: throw a system error when center.init fails 41593/head
authorXiubo Li <xiubli@redhat.com>
Fri, 7 Aug 2020 07:45:52 +0000 (15:45 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 31 May 2021 01:49:02 +0000 (09:49 +0800)
commitdf2d768dd7d0db320017c72a15b56aa25f738592
tree39fcca3cf5dcb64e7f6deb62a49c162c757d2bda
parentf191eb907354349a1d4f61389eb7994d8e103bad
msg: throw a system error when center.init fails

In the libcephfs test case, it will run handreds of threads in
parallel, it will possibly reach the open files limit, but there
won't useful logs about what has happened.

This will just throw a system error, just like:

C++ exception with description "(24) Too many open files" thrown in the test body.

Fixes: https://tracker.ceph.com/issues/43039
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 6338050)

Conflicts:
      src/msg/async/Stack.cc
- nautilus uses plain "i" as the for loop counter variable, while
master has more fancy "worker_id"
src/msg/async/Stack.cc