Skip to content

Commit

Permalink
Merge pull request #19580 from cbodley/wip-22473
Browse files Browse the repository at this point in the history
rgw: dont log EBUSY errors in 'sync error list'
  • Loading branch information
mattbenjamin committed Dec 21, 2017
2 parents 8f5a5e3 + ca4510b commit f9eea16
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/rgw/rgw_data_sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1037,10 +1037,13 @@ class RGWDataSyncSingleEntryCR : public RGWCoroutine {
}

if (sync_status < 0) {
yield call(sync_env->error_logger->log_error_cr(sync_env->conn->get_remote_id(), "data", raw_key,
-sync_status, string("failed to sync bucket instance: ") + cpp_strerror(-sync_status)));
if (retcode < 0) {
tn->log(0, SSTR("ERROR: failed to log sync failure: retcode=" << retcode));
// write actual sync failures for 'radosgw-admin sync error list'
if (sync_status != -EBUSY && sync_status != -EAGAIN) {
yield call(sync_env->error_logger->log_error_cr(sync_env->conn->get_remote_id(), "data", raw_key,
-sync_status, string("failed to sync bucket instance: ") + cpp_strerror(-sync_status)));
if (retcode < 0) {
tn->log(0, SSTR("ERROR: failed to log sync failure: retcode=" << retcode));
}
}
if (error_repo && !error_repo->append(raw_key)) {
tn->log(0, SSTR("ERROR: failed to log sync failure in error repo: retcode=" << retcode));
Expand Down

0 comments on commit f9eea16

Please sign in to comment.