]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: avoid ceph_abort in build_incremental_map_msg when newest_map is missing 67253/head
authorVinayak Tiwari <tiwarivinayak10@gmail.com>
Sun, 8 Feb 2026 08:24:29 +0000 (13:54 +0530)
committerLaura Flores <lflores@ibm.com>
Fri, 10 Apr 2026 18:32:05 +0000 (13:32 -0500)
commitc08a0eb32547079eb8438ee04db27d961aa458e7
treed49e8457da89cdb11504d48fea58c29b69ac0f13
parent928bfc6137f62a852de1aa7d1d32a591f89e6605
osd: avoid ceph_abort in build_incremental_map_msg when newest_map is missing

When sharing OSD maps with a peer (e.g. during heartbeat in
maybe_share_map), we may have already trimmed the requested range or
newest_map (e.g. trim race, or store read failure). In that case the
panic path tried to send newest_map; if it could not be loaded, the
code called ceph_abort() and crashed the OSD.

Log and return an empty MOSDMap instead of aborting. The receiver drops
such messages (last <= superblock.get_newest_map()) and can re-request
from the mon.

Fixes: https://tracker.ceph.com/issues/74800
Signed-off-by: Vinayak Tiwari <tiwarivinayak10@gmail.com>
src/osd/OSD.cc