]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: metadata and data sync fairness notifications to retry upon any error case 62793/head
authorOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 11 Apr 2025 21:45:19 +0000 (21:45 +0000)
committerOguzhan Ozmen <oozmen@bloomberg.net>
Mon, 14 Apr 2025 16:55:43 +0000 (16:55 +0000)
This is a complementary fix to the earlier one described at #62156.
When the sync shard notification fails due to any failures including timeout,
this change keeps the loop going for both metadata and data sync.

Fixes https://tracker.ceph.com/issues/70270

Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
src/rgw/driver/rados/rgw_data_sync.cc
src/rgw/driver/rados/rgw_sync.cc

index f01feaf89f4be79edd02ea78a2faf596cd084bc4..9285156f91a35cd31b774a753a9cf3b3fd3aeff8 100644 (file)
@@ -2404,8 +2404,7 @@ public:
         set_status("sync lock notification");
         yield call(sync_env->bid_manager->notify_cr());
         if (retcode < 0) {
-          tn->log(5, SSTR("ERROR: failed to notify bidding information" << retcode));
-          return set_cr_error(retcode);
+          tn->log(5, SSTR("ERROR: failed to notify bidding information retcode=" << retcode));
         }
 
         set_status("sleeping");
index 03643abf305db3285cd08e1c8247591d8d9bd0f5..f3dd85d481657cb865461b354c2b7026f0971e81 100644 (file)
@@ -1996,8 +1996,7 @@ public:
         set_status("sync lock notification");
         yield call(sync_env->bid_manager->notify_cr());
         if (retcode < 0) {
-          tn->log(5, SSTR("ERROR: failed to notify bidding information" << retcode));
-          return set_cr_error(retcode);
+          tn->log(5, SSTR("ERROR: failed to notify bidding information retcode=" << retcode));
         }
 
         set_status("sleeping");