fix: address upload-consistency verify findings
Mark a stale pending row in its own committed transaction before the cleaner deletes the object, and let mark_ready promote only unmarked rows, so a cleaner rollback after the object delete can no longer leave a ready attachment without its object. Add fault checks for an unknown COMMIT outcome, an upload outliving the grace period and a cleaner failure after the object delete; fix the cleaner entrypoint in rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -272,8 +272,12 @@ git ls-files -z -co --exclude-standard | tar --null -T - -cf - | docker build -t
|
||||
--exit-code-from s3-bootstrap s3-bootstrap` (`make start_s3`).
|
||||
- **Уборщик** (с лабы 4, сервис `cleaner`, design change
|
||||
`upload-consistency`, решения 2 и 9): образ API (`image:
|
||||
mtusi-messenger:lab4`, `pull_policy: never`), `command: ["python",
|
||||
"-m", "src.cleaner"]`, `restart: unless-stopped`, без портов.
|
||||
mtusi-messenger:lab4`, `pull_policy: never`), `entrypoint: ["python",
|
||||
"-m", "src.cleaner"]`, а не `command`: аргументы после имени сервиса
|
||||
(`docker compose run --rm --no-deps cleaner --once`) — флаги
|
||||
уборщика, а с `command` они заменили бы саму команду («executable file
|
||||
not found», design change `upload-consistency`, «Уточнения apply»,
|
||||
п. 6). `restart: unless-stopped`, без портов.
|
||||
Окружение — `<<: [*db-env, *s3-env]`, `DATABASE__POOL_SIZE: "1"` и
|
||||
ключи уборщика `S3_CLEANER_*` в `S3__ACCESS_KEY_ID` /
|
||||
`S3__SECRET_ACCESS_KEY`: ни пароля Valkey, ни ключей API, ни
|
||||
|
||||
Reference in New Issue
Block a user