]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds, client: only send the metrices supported by MDSes
authorXiubo Li <xiubli@redhat.com>
Wed, 16 Mar 2022 09:15:57 +0000 (17:15 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 1 Jun 2022 08:31:32 +0000 (16:31 +0800)
commit4ba3219f51dfa4b9ca43ee839da12be4cb4abaaf
tree86a43ac1d49e63eadb306c49ed1d5c4e34d10ee4
parentb9971e0eb3490d025c4db1b89342008820176775
mds, client: only send the metrices supported by MDSes

For the old ceph clusters the clients won't send any metrics to
them as default unless they have backported this commit, but there
has one option 'client_collect_and_send_global_metrics' still could
be used to enable it manually.

This will fix the crash bug when upgrading from old ceph clusters,
which will crash the MDSes once they receive unknown metrics.

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

Conflicts:
          src/client/Client.cc
src/client/Client.cc
src/client/MetaSession.h
src/mds/Server.cc
src/mds/Server.h