61 lines
2.6 KiB
Markdown
61 lines
2.6 KiB
Markdown
# Исследование согласованности PostgreSQL/S3
|
|
|
|
Дата начала (UTC): 2026-11-06T15:13:23.135411+00:00.
|
|
|
|
Успешных проверок: 30/30.
|
|
|
|
| Добавлено intact | Просмотрено metadata | Медиана обхода, с |
|
|
|---:|---:|---:|
|
|
| 10 | 13 | 0.023085 |
|
|
| 100 | 103 | 0.170581 |
|
|
| 1000 | 1003 | 1.581705 |
|
|
|
|
По три dry-run на размер, page_size100, прогретый локальный стенд.
|
|
Дополнительные три intact fault fixtures входят в фактический scan.
|
|
|
|
Первый apply: удалено intent 2, операций удаления объекта 3, missing помечено failed 1.
|
|
Счётчик удаления объекта — число успешных идемпотентных DELETE, включая отсутствие bytes у intent.
|
|
|
|
Временные ресурсы удалены: True.
|
|
|
|
## Проверенные инварианты
|
|
|
|
- PASS: real_db_insert_failure_after_s3_put
|
|
- PASS: real_s3_connect_failure_is_503
|
|
- PASS: commit_ack_loss_injected
|
|
- PASS: uncertain_response_keeps_committed_original
|
|
- PASS: dry_run_changes_neither_db_nor_s3
|
|
- PASS: all_reconcile_passes_have_no_errors
|
|
- PASS: orphan_removed
|
|
- PASS: missing_marked_failed_metadata_kept
|
|
- PASS: used_original_kept
|
|
- PASS: fresh_metadata_and_original_kept
|
|
- PASS: fresh_orphan_kept
|
|
- PASS: old_intent_fresh_object_kept
|
|
- PASS: active_writer_object_kept
|
|
- PASS: committed_original_survives_reconciliation
|
|
- PASS: repeat_has_no_duplicate_mutations
|
|
- PASS: s3_delete_failure_observed
|
|
- PASS: dry_run_after_failed_apply_still_read_only
|
|
- PASS: failed_cleanup_recovers
|
|
- PASS: real_db_delete_failure_after_s3_delete
|
|
- PASS: dry_run_does_not_resume_partial_delete
|
|
- PASS: partial_delete_resumes_only_on_apply
|
|
- PASS: scan_has_no_errors_10_0
|
|
- PASS: scan_has_no_errors_10_1
|
|
- PASS: scan_has_no_errors_10_2
|
|
- PASS: scan_has_no_errors_100_0
|
|
- PASS: scan_has_no_errors_100_1
|
|
- PASS: scan_has_no_errors_100_2
|
|
- PASS: scan_has_no_errors_1000_0
|
|
- PASS: scan_has_no_errors_1000_1
|
|
- PASS: scan_has_no_errors_1000_2
|
|
|
|
## Ограничения
|
|
|
|
- One local host and warm services; scan measures HEAD/SQL round trips, not production SLA
|
|
- Missing originals are marked failed; reconciliation cannot recreate lost bytes without backup
|
|
- Valid unattached ready attachments are retained; only abandoned intents and untracked old original objects are removed
|
|
- No atomic transaction spans S3 and PostgreSQL; retries plus durable intent recover the selected windows
|
|
- Cost dataset is in disposable isolated DB/bucket, includes a few preserved fault fixtures beyond the seeded intact count
|