]> 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, 22 Jun 2022 05:16:57 +0000 (13:16 +0800)
commit020fb2f7007bb5ee3b7f7306063aac054be7dc84
treeb1de89a902dee0f1c433a82a33b3a9540979d56d
parent5e4cbdc3b3cd100143e05f0f3a408b7ab28d74a1
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