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: v12.2.9~75^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f4fef2acdf238404c1ecb6ce08b1cf15cdeea26c;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/36037 See-also: http://tracker.ceph.com/issues/35830 Signed-off-by: Casey Bodley (cherry picked from commit a6e392f2b8cb885f6fede5dfa9b584659740e161) Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 439951e1a076..07285bdcaf26 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1422,7 +1422,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; + ldout(sync_env->cct, 10) << "a sync operation returned error" << dendl; /* we have reported this error */ } /* not waiting for child here */ @@ -2634,7 +2634,7 @@ int RGWBucketShardFullSyncCR::operate() while (again) { again = collect(&ret, nullptr); if (ret < 0) { - ldout(sync_env->cct, 0) << "ERROR: a sync operation returned error" << dendl; + ldout(sync_env->cct, 10) << "a sync operation returned error" << dendl; sync_status = ret; /* we have reported this error */ } @@ -2650,7 +2650,7 @@ int RGWBucketShardFullSyncCR::operate() while (again) { again = collect(&ret, nullptr); if (ret < 0) { - ldout(sync_env->cct, 0) << "ERROR: a sync operation returned error" << dendl; + ldout(sync_env->cct, 10) << "a sync operation returned error" << dendl; sync_status = ret; /* we have reported this error */ } @@ -2672,7 +2672,7 @@ int RGWBucketShardFullSyncCR::operate() attrs)); } } else { - ldout(sync_env->cct, 0) << "ERROR: failure in sync, backing out (sync_status=" << sync_status<< ")" << dendl; + ldout(sync_env->cct, 10) << "failure in sync, backing out (sync_status=" << sync_status<< ")" << dendl; } if (retcode < 0 && sync_status == 0) { /* actually tried to set incremental state and failed */ ldout(sync_env->cct, 0) << "ERROR: failed to set sync state on bucket " @@ -2908,7 +2908,7 @@ int RGWBucketShardIncrementalSyncCR::operate() while (again) { again = collect(&ret, nullptr); if (ret < 0) { - ldout(sync_env->cct, 0) << "ERROR: a sync operation returned error" << dendl; + ldout(sync_env->cct, 10) << "a sync operation returned error" << dendl; sync_status = ret; /* we have reported this error */ } @@ -2936,7 +2936,7 @@ int RGWBucketShardIncrementalSyncCR::operate() while (again) { again = collect(&ret, nullptr); if (ret < 0) { - ldout(sync_env->cct, 0) << "ERROR: a sync operation returned error" << dendl; + ldout(sync_env->cct, 10) << "a sync operation returned error" << dendl; sync_status = ret; /* we have reported this error */ } @@ -2950,7 +2950,7 @@ int RGWBucketShardIncrementalSyncCR::operate() return set_cr_error(retcode); } if (sync_status < 0) { - ldout(sync_env->cct, 0) << "ERROR: failure in sync, backing out (sync_status=" << sync_status<< ")" << dendl; + ldout(sync_env->cct, 10) << "failure in sync, backing out (sync_status=" << sync_status<< ")" << dendl; } /* wait for all operations to complete */