]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/logging: fixes data loss during rollover
authorN Balachandran <nithya.balachandran@ibm.com>
Thu, 28 Aug 2025 06:22:23 +0000 (11:52 +0530)
committerN Balachandran <nithya.balachandran@ibm.com>
Mon, 8 Sep 2025 09:28:24 +0000 (14:58 +0530)
commit40429b576c84e5c439ee2e9a3802feff288a4e88
treeda4d2779afa9c04728863ab14a6ac43dd497e5f3
parent4ad5cc4bf715a322100388e405ff15952296cc27
rgw/logging: fixes data loss during rollover

Multiple threads attempting to roll over the same log object can result
in the creation of numerous orphan tail objects, each with a single record.
This occurs when a NULL RGWObjVersionTracker is used during the creation of
a new logging object. These records are inaccessible, leading to data loss,
which is particularly critical in Journal mode.
Furthermore, valid log tail objects may be added to the Garbage Collection (GC)
list, exacerbating data loss.

Fixes: https://tracker.ceph.com/issues/72740
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit eea6525c031ae93f4ae846b06d55831e658faa2c)
src/rgw/rgw_bucket_logging.cc