forked from mtusi2026/mtusi2026lab4
14 lines
783 B
Plaintext
14 lines
783 B
Plaintext
# 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}
|