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: v13.2.3~139^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24418%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 (cherry picked from commit a6e392f2b8cb885f6fede5dfa9b584659740e161) Conflicts: src/rgw/rgw_data_sync.cc : Resolved in operate --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 4ae980d6dff..d72acd39a59 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1504,7 +1504,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 */ @@ -2806,7 +2806,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 */ } @@ -2822,7 +2822,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 */ } @@ -2844,7 +2844,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 " @@ -3094,7 +3094,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 */ } @@ -3110,7 +3110,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 */ } @@ -3134,7 +3134,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();