From dea4636b83976f94fded3c8f252e49d6513371cb Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 7 Sep 2018 09:51:56 -0400 Subject: [PATCH] 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 --- src/rgw/rgw_data_sync.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 4ae980d6dffc..d72acd39a599 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(); -- 2.47.3