From: Sage Weil Date: Thu, 25 Sep 2014 20:51:46 +0000 (-0700) Subject: osd: improve debug output for do_{notifies,queries,infos} X-Git-Tag: v0.86~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d851c3f2338e8d17dfd78d631b9f7977365356aa;p=ceph.git osd: improve debug output for do_{notifies,queries,infos} Hunting #9389 Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 62866fe3ea7c..4e735b085f8d 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -7164,21 +7164,26 @@ void OSD::do_notifies( notify_list.begin(); it != notify_list.end(); ++it) { - if (!curmap->is_up(it->first)) + if (!curmap->is_up(it->first)) { + dout(20) << __func__ << " skipping down osd." << it->first << dendl; continue; + } ConnectionRef con = service.get_con_osd_cluster( it->first, curmap->get_epoch()); - if (!con) + if (!con) { + dout(20) << __func__ << " skipping osd." << it->first + << " (NULL con)" << dendl; continue; + } service.share_map_peer(it->first, con.get(), curmap); if (con->has_feature(CEPH_FEATURE_INDEP_PG_MAP)) { - dout(7) << "do_notify osd " << it->first + dout(7) << __func__ << " osd " << it->first << " on " << it->second.size() << " PGs" << dendl; MOSDPGNotify *m = new MOSDPGNotify(curmap->get_epoch(), it->second); con->send_message(m); } else { - dout(7) << "do_notify osd " << it->first + dout(7) << __func__ << " osd " << it->first << " sending separate messages" << dendl; for (vector >::iterator i = it->second.begin(); @@ -7204,22 +7209,27 @@ void OSD::do_queries(map >& query_map, for (map >::iterator pit = query_map.begin(); pit != query_map.end(); ++pit) { - if (!curmap->is_up(pit->first)) + if (!curmap->is_up(pit->first)) { + dout(20) << __func__ << " skipping down osd." << pit->first << dendl; continue; + } int who = pit->first; ConnectionRef con = service.get_con_osd_cluster(who, curmap->get_epoch()); - if (!con) + if (!con) { + dout(20) << __func__ << " skipping osd." << who + << " (NULL con)" << dendl; continue; + } service.share_map_peer(who, con.get(), curmap); if (con->has_feature(CEPH_FEATURE_INDEP_PG_MAP)) { - dout(7) << "do_queries querying osd." << who + dout(7) << __func__ << " querying osd." << who << " on " << pit->second.size() << " PGs" << dendl; MOSDPGQuery *m = new MOSDPGQuery(curmap->get_epoch(), pit->second); con->send_message(m); } else { - dout(7) << "do_queries querying osd." << who - << " sending saperate messages " - << " on " << pit->second.size() << " PGs" << dendl; + dout(7) << __func__ << " querying osd." << who + << " sending seperate messages on " << pit->second.size() + << " PGs" << dendl; for (map::iterator i = pit->second.begin(); i != pit->second.end(); ++i) { @@ -7242,18 +7252,23 @@ void OSD::do_infos(mapis_up(p->first)) + if (!curmap->is_up(p->first)) { + dout(20) << __func__ << " skipping down osd." << p->first << dendl; continue; + } for (vector >::iterator i = p->second.begin(); i != p->second.end(); ++i) { - dout(20) << "Sending info " << i->first.info + dout(20) << __func__ << " sending info " << i->first.info << " to shard " << p->first << dendl; } ConnectionRef con = service.get_con_osd_cluster( p->first, curmap->get_epoch()); - if (!con) + if (!con) { + dout(20) << __func__ << " skipping osd." << p->first + << " (NULL con)" << dendl; continue; + } service.share_map_peer(p->first, con.get(), curmap); if (con->has_feature(CEPH_FEATURE_INDEP_PG_MAP)) { MOSDPGInfo *m = new MOSDPGInfo(curmap->get_epoch());