Skip to content

Commit 78cf89c

Browse files
committed
osd: prevent OSDMap::check_health() from asserting due to new OSDs found in subtree
For RCA please refer to: https://tracker.ceph.com/issues/70869#note-9. Fixes: https://tracker.ceph.com/issues/70869 Signed-off-by: Radoslaw Zarzynski <[email protected]>
1 parent 3c8f796 commit 78cf89c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osd/OSDMap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ bool OSDMap::subtree_type_is_down(
369369
{
370370
if (id >= 0) {
371371
bool is_down_ret = is_down(id);
372-
if (!is_out(id)) {
372+
if (!is_out(id) && !(osd_state[id] & CEPH_OSD_NEW)) {
373373
if (is_down_ret) {
374374
down_in_osds->insert(id);
375375
} else {

0 commit comments

Comments
 (0)