]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc: add timeout configs for mons/osds
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 3 Oct 2020 00:11:54 +0000 (17:11 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 13 Oct 2020 17:16:00 +0000 (10:16 -0700)
commita8a23747aa081d938c9b277ab42507dd506bf6c2
tree2bc74a1cfa90c32d260069b26868d76405631b3f
parent0feabb4ff16e5b97d90718eb677c85699e776fdb
osdc: add timeout configs for mons/osds

Have the Objecter track the rados_(mon|osd)_op_timeout configs so that
it can be configured at runtime/startup. This is useful for the
MDS/ceph-fuse so that we can avoid waiting forever for a response from
the Monitors that will never come (statfs on a deleted file system's
pools).

Also: make these configs take a time value rather than double. This is
simpler to deal with in the code and allows time units to be used (e.g.
"5m" for 5 minutes).

Fixes: https://tracker.ceph.com/issues/47734
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
15 files changed:
src/client/Client.cc
src/common/legacy_config_opts.h
src/common/options.cc
src/librados/RadosClient.cc
src/librados/RadosClient.h
src/mds/MDSRank.cc
src/mgr/MgrStandby.cc
src/mon/MonClient.h
src/neorados/RADOSImpl.cc
src/osd/OSD.cc
src/osdc/Objecter.cc
src/osdc/Objecter.h
src/test/librados/io.cc
src/test/mon/test_mon_workloadgen.cc
src/tools/cephfs/MDSUtility.cc