forked from mtusi2026/mtusi2026lab4
ЛР4: S3-вложения (SeaweedFS), приватный bucket, компенсация/reconciler, тесты, отчёт
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# S3/DB consistency: orphan detection with a safe grace period, then cleanup
|
||||
== baseline ==
|
||||
{"db_attachments": 44, "s3_objects": 44, "orphans": 0, "missing": 0, "apply": false, "grace_seconds": 3600}
|
||||
== create an orphan object (simulated crash between PUT and COMMIT) ==
|
||||
orphan put
|
||||
== reconcile dry-run (fresh orphan kept by grace period) ==
|
||||
{"db_attachments": 44, "s3_objects": 45, "orphans": 0, "missing": 0, "apply": false, "grace_seconds": 3600}
|
||||
== reconcile --apply --grace-seconds 0 ==
|
||||
{"db_attachments": 44, "s3_objects": 45, "orphans": 1, "missing": 0, "apply": true, "grace_seconds": 0}
|
||||
orphan: chats/orphan/demo
|
||||
{"deleted_orphans": 1}
|
||||
== reconcile after cleanup ==
|
||||
{"db_attachments": 44, "s3_objects": 44, "orphans": 0, "missing": 0, "apply": false, "grace_seconds": 3600}
|
||||
Reference in New Issue
Block a user