]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-objectstore-tool: update-mon-db: do not fail if incmap is missing 30979/head
authorKefu Chai <kchai@redhat.com>
Mon, 12 Aug 2019 02:12:28 +0000 (10:12 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 17 Oct 2019 16:25:38 +0000 (18:25 +0200)
commit43662bd4266a4fcc8db62f4bc9beb0de78eef355
treebf49d24669e4ffd8f80de0af94f488a162232afe
parentdd0ade7671d422120533583939e958623a8e038b
ceph-objectstore-tool: update-mon-db: do not fail if incmap is missing

there is chance that we could use an OSD which does not have incmap of a
certain epoch for rebuilding the monstore. and since OSD does not read
and store the incmap if the MOSDMap message already has the fullmap of
that fullmap, and if an OSD does not have previous fullmap, monitor
will just send it the fullmao. so it's not unusual that an OSD has
a fullmap of some epoch without corresponding incmap.

Fixes: https://tracker.ceph.com/issues/41177
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 2e2414b3df97b22ccc54500830c24b28597ce75f)
src/tools/rebuild_mondb.cc