]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/logging: fix race condition when name update returns ECANCELED
authorYuval Lifshitz <ylifshit@ibm.com>
Sun, 12 Oct 2025 14:14:36 +0000 (14:14 +0000)
committerN Balachandran <nithya.balachandran@ibm.com>
Fri, 2 Jan 2026 05:06:00 +0000 (10:36 +0530)
commit15255cf949f9bc12e7b461735a53b5879ac221c2
treed3f4c419876eab24b756ee54166e82f8d5457848
parentf2db1ff481e23242e60b952181d8d2fc3a10cc10
rgw/logging: fix race condition when name update returns ECANCELED

* when we get ECANCELED indication from the name set operation we should
  bail out and not continue with the rollover
* this fix revealed a hidden bug where we do not check the existing temp
  name when we do conf change cleanup (rollover)

Fixes: https://tracker.ceph.com/issues/73434
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit 78f62f4207b9752d85a9ccbfa3007f2f2cf79d21)
src/rgw/radosgw-admin/radosgw-admin.cc
src/rgw/rgw_bucket_logging.cc
src/rgw/rgw_rest_bucket_logging.cc