From: David Zafman Date: Tue, 1 Sep 2015 02:28:18 +0000 (-0700) Subject: osd: Fix the diagnostic logging mostly to dout(20) X-Git-Tag: v9.1.0~244^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=28324fdb080c99f3ae6c4176b5eb092592970671;p=ceph.git osd: Fix the diagnostic logging mostly to dout(20) Signed-off-by: David Zafman --- diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index 47594cb93288..c2c4e1929bc1 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -1003,7 +1003,7 @@ void ECBackend::handle_sub_read_reply( assert(!op.errors.count(i->first)); // If attribute error we better not have sent a buffer if (!rop.to_read.count(i->first)) { // We canceled this read! @see filter_read_op -dout(0) << __func__ << " to_read skipping" << dendl; + dout(20) << __func__ << " to_read skipping" << dendl; continue; } list >::const_iterator req_iter = @@ -1030,7 +1030,7 @@ dout(0) << __func__ << " to_read skipping" << dendl; assert(!op.errors.count(i->first)); // if read error better not have sent an attribute if (!rop.to_read.count(i->first)) { // We canceled this read! @see filter_read_op -dout(0) << __func__ << " to_read skipping" << dendl; + dout(20) << __func__ << " to_read skipping" << dendl; continue; } rop.complete[i->first].attrs = map(); @@ -1043,7 +1043,7 @@ dout(0) << __func__ << " to_read skipping" << dendl; make_pair( from, i->second)); -dout(0) << __func__ << " shard=" << from << " error=" << i->second << dendl; + dout(20) << __func__ << " shard=" << from << " error=" << i->second << dendl; } map >::iterator siter = @@ -1068,14 +1068,14 @@ dout(0) << __func__ << " shard=" << from << " error=" << i->second << dendl; j != iter->second.returned.front().get<2>().end(); ++j) { have.insert(j->first.shard); -dout(0) << __func__ << " have shard=" << j->first.shard << dendl; + dout(20) << __func__ << " have shard=" << j->first.shard << dendl; } set want_to_read, dummy_minimum; get_want_to_read_shards(&want_to_read); int err; // XXX: Could just do if (have.size < ec_impl->get_data_chunk_count()) if ((err = ec_impl->minimum_to_decode(want_to_read, have, &dummy_minimum)) < 0) { -dout(0) << __func__ << " minimum_to_decode failed" << dendl; + dout(20) << __func__ << " minimum_to_decode failed" << dendl; if (rop.in_progress.empty()) { // If we don't have enough copies and we haven't sent reads for all shards // we can send the rest of the reads, if any. @@ -1088,17 +1088,18 @@ dout(0) << __func__ << " minimum_to_decode failed" << dendl; // Couldn't read any additional shards so handle as completed with errors } if (rop.complete[iter->first].errors.empty()) { -dout(0) << __func__ << " simply not enough copies err=" << err << dendl; + dout(20) << __func__ << " simply not enough copies err=" << err << dendl; } else { // Grab the first error err = rop.complete[iter->first].errors.begin()->second; -dout(0) << __func__ << ": Use one of the shard errors err=" << err << dendl; + dout(20) << __func__ << ": Use one of the shard errors err=" << err << dendl; } rop.complete[iter->first].r = err; ++is_complete; } } else { -dout(0) << __func__ << " Enough copies for " << iter->first << " (ignore errors)" << dendl; + if (!rop.complete[iter->first].errors.empty()) + dout(10) << __func__ << " Enough copies for " << iter->first << " (ignore errors)" << dendl; ++is_complete; rop.complete[iter->first].errors.clear(); assert(rop.complete[iter->first].r == 0); @@ -1106,7 +1107,7 @@ dout(0) << __func__ << " Enough copies for " << iter->first << " (ignore errors) } } if (rop.in_progress.empty() || is_complete == rop.complete.size()) { -dout(0) << __func__ << " Complete: " << rop << dendl; + dout(20) << __func__ << " Complete: " << rop << dendl; complete_read_op(rop, m); } else { dout(10) << __func__ << " readop not complete: " << rop << dendl;