]> 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)
committerJon <jonathan.bailey1@ibm.com>
Fri, 3 Oct 2025 13:31:23 +0000 (14:31 +0100)
commite77068922292effb635f8a101a2fabecee7d9dd4
tree5cfb92406e5b0bdc2d09b8db35f9d518848f7b31
parentc550d82f2282b4b1734cb04d10901ea3c6648c14
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