]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: send tell commands out of band via MCommand
authorSage Weil <sage@redhat.com>
Fri, 6 Sep 2019 20:18:12 +0000 (15:18 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 Oct 2019 21:30:53 +0000 (16:30 -0500)
commit4ef0502da5e3edb0ddb826d713154763dcf02a3c
tree48b8869e2c66a4a04068bffaa855c1b312c2187f
parent83b551d6aec597d0ca67ed07f7a94984b38be229
mon/MonClient: send tell commands out of band via MCommand

The current tell mon command handling is pretty fragile and semi-broken:
we force the client to (exclusively) connect to the target mon, disrupting
other monclient business, and the retry logic is fragile.

Instead, use entirely independent connections for each tell command, and
tear them down when we get a reply. Implement independent and simple
error handling and timeouts.

Keep most of the old behavior alive so that we can still use tell against
pre-octopus mons.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc
src/mon/MonClient.h