]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSD/OSDService: make osdmap load error more human-understandable 7306/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 21 Jan 2016 07:55:41 +0000 (08:55 +0100)
committerPiotr Dałek <ceph@predictor.org.pl>
Thu, 5 May 2016 15:08:30 +0000 (17:08 +0200)
commit9b5c7087919b5bfaf99e1ce745fc748baf1706cf
tree99121311e3ef930109c9cb54138fbcae59a28505
parent64da723d4a54a791aa3847e88b155a20517c62eb
OSD/OSDService: make osdmap load error more human-understandable

In case when OSD crashed leaving empty OSD maps in its store, subsequent
OSD boots will fail with exception end_of_buffer thrown in map->decode.
This occurs because _get_map_bl returns TRUE and empty bufferlist.
In that case, inform user of actual issue instead of crashing in odd place
and requiring them to strace ceph-osd to find out what actually happened.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
src/osd/OSD.cc