]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Resolve sync stuck in previous gen 48898/head
authorSoumya Koduri <skoduri@redhat.com>
Mon, 26 Dec 2022 17:31:40 +0000 (12:31 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 13 Jan 2023 14:49:56 +0000 (09:49 -0500)
commit230a6e0c0eb6fbbdf41c84a76568ee6806a3d081
treef2d92dc5fa044dd6167fd4d4bcb3e08dd1200339
parentfb92311b3e17101c2eee4bc0e4ef7cf3b744bc7a
rgw: Resolve sync stuck in previous gen

In case if any data log entries are missing for the older
generations, the sync server may not mark those shards as done
and can get stuck in that old gen for ever.

To avoid that, whenever a future gen entry is read, write the undone (shard,gen)
entry to error repo so that it can be processed and marked as done
and hence sync can progress eventually.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/driver/rados/rgw_data_sync.cc