forked from mtusi2026/mtusi2026lab4
101 lines
3.0 KiB
JSON
101 lines
3.0 KiB
JSON
{
|
|
"hypothesis": "A full-scan reconciler with a 120s grace period removes only expired orphans and unreferenced metadata whose object is already gone.",
|
|
"method": "Inject a fresh orphan, a 2h orphan, a 2h missing unreferenced row, and a 2h missing row referenced by a message. Dry-run, apply, dry-run again.",
|
|
"dry_run": {
|
|
"mode": "dry-run",
|
|
"duration_ms": 129.367,
|
|
"db_ms": 2.036,
|
|
"list_ms": 127.228,
|
|
"list_pages": 1,
|
|
"objects_seen": 27,
|
|
"attachment_rows": 27,
|
|
"ledger_rows": 29,
|
|
"referenced_attachments": 3,
|
|
"grace_seconds": 120,
|
|
"skipped": {
|
|
"fresh_orphan": 1,
|
|
"accounted": 25,
|
|
"in_use_missing": 1
|
|
},
|
|
"actions": [
|
|
{
|
|
"op": "delete_orphan_object",
|
|
"note": "old-orphan",
|
|
"attachment_id": "b763d1e0-5694-4816-b035-3bcd748d4e48",
|
|
"age_seconds": 7200
|
|
},
|
|
{
|
|
"op": "delete_stale_metadata",
|
|
"note": "fault-stale-missing",
|
|
"attachment_id": "93a9f66b-b559-4053-8094-189d09a19864",
|
|
"age_seconds": 7200
|
|
}
|
|
],
|
|
"action_count": 2
|
|
},
|
|
"apply": {
|
|
"mode": "apply",
|
|
"duration_ms": 154.264,
|
|
"db_ms": 2.987,
|
|
"list_ms": 128.676,
|
|
"list_pages": 1,
|
|
"objects_seen": 27,
|
|
"attachment_rows": 27,
|
|
"ledger_rows": 29,
|
|
"referenced_attachments": 3,
|
|
"grace_seconds": 120,
|
|
"skipped": {
|
|
"fresh_orphan": 1,
|
|
"accounted": 25,
|
|
"in_use_missing": 1
|
|
},
|
|
"actions": [
|
|
{
|
|
"op": "delete_orphan_object",
|
|
"note": "old-orphan",
|
|
"attachment_id": "b763d1e0-5694-4816-b035-3bcd748d4e48",
|
|
"age_seconds": 7202
|
|
},
|
|
{
|
|
"op": "delete_stale_metadata",
|
|
"note": "fault-stale-missing",
|
|
"attachment_id": "93a9f66b-b559-4053-8094-189d09a19864",
|
|
"age_seconds": 7202
|
|
}
|
|
],
|
|
"action_count": 2
|
|
},
|
|
"second_dry_run": {
|
|
"mode": "dry-run",
|
|
"duration_ms": 129.352,
|
|
"db_ms": 1.791,
|
|
"list_ms": 127.518,
|
|
"list_pages": 1,
|
|
"objects_seen": 26,
|
|
"attachment_rows": 26,
|
|
"ledger_rows": 29,
|
|
"referenced_attachments": 3,
|
|
"grace_seconds": 120,
|
|
"skipped": {
|
|
"fresh_orphan": 1,
|
|
"accounted": 25,
|
|
"in_use_missing": 1,
|
|
"terminal_ledger": 2
|
|
},
|
|
"actions": [],
|
|
"action_count": 0
|
|
},
|
|
"survived": {
|
|
"fresh_orphan_object": true,
|
|
"in_use_metadata": true,
|
|
"fresh_message_attachment_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
|
"loose_unreferenced_attachment": "a8b23e26-ee4f-49c6-8490-16fe5a1ef9b8"
|
|
},
|
|
"limitations": [
|
|
"Walk cost is one full ListObjects plus one pass over attachment and ledger rows; this stand has one page.",
|
|
"Grace uses the ledger or metadata timestamp, not a backdated S3 LastModified, because MinIO does not let the lab rewrite LastModified.",
|
|
"In-use metadata whose bytes are gone is reported and kept; the reconciler does not invent replacement bytes.",
|
|
"A second dry-run being empty shows the repair is repeatable, not that a continuous watcher is running."
|
|
]
|
|
}
|