]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds, client: only send the metrices supported by MDSes 45370/head
authorXiubo Li <xiubli@redhat.com>
Wed, 16 Mar 2022 09:15:57 +0000 (17:15 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 18 Apr 2022 02:18:31 +0000 (10:18 +0800)
commite9a26c551c763f75a403ff26f6304d5c10f2ca38
tree5615ec4862a976afdbab6bb2e98a4134ba7b5b5b
parentbeb9f1648101bd18f3619c9fc7e972fab34dfc85
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>
src/client/Client.cc
src/client/MetaSession.h
src/mds/Server.cc
src/mds/Server.h