mirror of
https://github.com/project-zot/zot.git
synced 2026-06-19 14:08:01 +08:00
b51c196301
Replace the unbounded self-heal retry loop in DedupeBlob with an explicit retry cap to prevent pathological looping when cache records keep pointing to missing _blobstore masters while duplicate refs remain live. Keep existing fail-fast behavior when updatedRecord == dstRecord, and return the last observed stat error when retry budget is exhausted. Add regression coverage for the changing-stale-record scenario to ensure DedupeBlob returns predictably. Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>