]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-objectstore-tool: update-mon-db: do not fail if incmap is missing
authorKefu Chai <kchai@redhat.com>
Mon, 12 Aug 2019 02:12:28 +0000 (10:12 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 12 Aug 2019 05:06:01 +0000 (13:06 +0800)
commit2e2414b3df97b22ccc54500830c24b28597ce75f
tree2d12ace48fd9c8062e7a044cc515c90647baedcd
parent801d2f0449f0fe41ee67065c4ac8be47fcca4004
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>
src/tools/rebuild_mondb.cc