mirror of
https://github.com/ceph/ceph
synced 2025-01-18 09:02:08 +00:00
OSD: adjust share_map() to handle the case that the osd is down
The assert was hitting while OSd is waiting for becoming healthy in handle_osd_map(). This can happen while io is going on and OSDs are made down forcefully by say osd thrash command. So, the fix could be instead of asserting just return from here. Fixes: #8646 Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
This commit is contained in:
parent
94e1b77624
commit
fde99e699f
@ -4820,8 +4820,10 @@ void OSDService::share_map(
|
||||
<< name << " " << con->get_peer_addr()
|
||||
<< " " << epoch << dendl;
|
||||
|
||||
assert(osd->is_active() ||
|
||||
osd->is_stopping());
|
||||
if ((!osd->is_active()) && (!osd->is_stopping())) {
|
||||
/*It is safe not to proceed as OSD is not in healthy state*/
|
||||
return;
|
||||
}
|
||||
|
||||
bool want_shared = should_share_map(name, con, epoch,
|
||||
osdmap, sent_epoch_p);
|
||||
|
Loading…
Reference in New Issue
Block a user