fix: delete the object and the row in one locked cleanup transaction
Keep the committed mark, then delete the object and the row under the same row lock, so an older replica without the mark check that waits on the row finds it gone instead of promoting it to ready after the object delete. A mixed-version stand is no worse than before the mark; document the upgrade order (replicas first, cleaner last) and fix stale wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -169,7 +169,10 @@ paths:
|
||||
ошибок, без значений полей), «Stopped cleaner before startup» — как у
|
||||
API.
|
||||
- `attachment_cleanup_service`: `info` «Removed stale attachment»
|
||||
(`attachment_id`, `object_key`, `age_seconds`); итог прохода
|
||||
(`attachment_id`, `object_key`, `age_seconds`) — после commit
|
||||
транзакции уборки (второй шаг строки: объект и строка под
|
||||
блокировкой); пометка (первый шаг) и пропуск занятой строки своих
|
||||
записей не пишут, пропуски видны в `skipped`; итог прохода
|
||||
«Finished cleanup pass» / «Interrupted cleanup pass» (`removed`,
|
||||
`skipped`, `interrupted_by`, `duration_ms`): `warning` при отказе S3
|
||||
или БД, `info`, если что-то убрано или проход остановлен сигналом,
|
||||
|
||||
Reference in New Issue
Block a user