]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: metadata and data sync fairness notifications to retry upon any error case 62356/head
authorOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 11 Apr 2025 21:45:19 +0000 (21:45 +0000)
committerCasey Bodley <cbodley@redhat.com>
Thu, 17 Apr 2025 16:01:38 +0000 (12:01 -0400)
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>
(cherry picked from commit 766b7a14315ae7ca9645b462ee774570caeff64c)

src/rgw/driver/rados/rgw_data_sync.cc
src/rgw/driver/rados/rgw_sync.cc

index dbea56d4de78e8fa0d65edbbb125719db217ca24..2c7a48a1edd5286ac162402f40eba46a9e7dc0c0 100644 (file)
@@ -2364,8 +2364,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 583e2d1098e1c2ae2c74923d640dbc8fd773655e..62211fa6c160d253ec82f72a2769039724f54d9d 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");