From: Casey Bodley Date: Fri, 7 Sep 2018 13:51:56 +0000 (-0400) Subject: rgw: raise debug level on redundant data sync error messages X-Git-Tag: v14.0.1~276^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23981%2Fhead;p=ceph.git rgw: raise debug level on redundant data sync error messages each of these errors have already been logged at a lower level with a more detailed error message. by logging them as ERRORs at level 0 here, the messages could be easily confused as separate failures Fixes: http://tracker.ceph.com/issues/35830 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index e8954f6fe1889..5198e85960927 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1476,7 +1476,7 @@ public: int ret; while (collect(&ret, lease_stack.get())) { if (ret < 0) { - ldout(sync_env->cct, 0) << "ERROR: a sync operation returned error" << dendl; + tn->log(10, "a sync operation returned error"); /* we have reported this error */ } /* not waiting for child here */ @@ -2780,7 +2780,7 @@ int RGWBucketShardFullSyncCR::operate() while (again) { again = collect(&ret, nullptr); if (ret < 0) { - tn->log(0, SSTR("ERROR: a sync operation returned error")); + tn->log(10, "a sync operation returned error"); sync_status = ret; /* we have reported this error */ } @@ -2796,7 +2796,7 @@ int RGWBucketShardFullSyncCR::operate() while (again) { again = collect(&ret, nullptr); if (ret < 0) { - tn->log(0, SSTR("ERROR: a sync operation returned error")); + tn->log(10, "a sync operation returned error"); sync_status = ret; /* we have reported this error */ } @@ -2818,7 +2818,7 @@ int RGWBucketShardFullSyncCR::operate() attrs)); } } else { - tn->log(0, SSTR("ERROR: failure in sync, backing out (sync_status=" << sync_status<< ")")); + tn->log(10, SSTR("backing out with sync_status=" << sync_status)); } if (retcode < 0 && sync_status == 0) { /* actually tried to set incremental state and failed */ tn->log(0, SSTR("ERROR: failed to set sync state on bucket " @@ -3068,7 +3068,7 @@ int RGWBucketShardIncrementalSyncCR::operate() while (again) { again = collect(&ret, nullptr); if (ret < 0) { - tn->log(0, SSTR("ERROR: a sync operation returned error")); + tn->log(10, "a sync operation returned error"); sync_status = ret; /* we have reported this error */ } @@ -3084,7 +3084,7 @@ int RGWBucketShardIncrementalSyncCR::operate() while (again) { again = collect(&ret, nullptr); if (ret < 0) { - tn->log(0, SSTR("ERROR: a sync operation returned error")); + tn->log(10, "a sync operation returned error"); sync_status = ret; /* we have reported this error */ } @@ -3108,7 +3108,7 @@ int RGWBucketShardIncrementalSyncCR::operate() return set_cr_error(retcode); } if (sync_status < 0) { - tn->log(0, SSTR("ERROR: failure in sync, backing out (sync_status=" << sync_status<< ")")); + tn->log(10, SSTR("backing out with sync_status=" << sync_status)); return set_cr_error(sync_status); } return set_cr_done();