~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A transient PLC failure on delete leaves the group's DID live for good

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

the account and its data are deleted first, then the tombstone is published. If the directory is unreachable or refuses, the error is only logged and deleteGroup answers tombstoned: false. That is the same answer as "left to the stewards", so the caller cannot tell the two apart. The DID's only rotation key is the host's, so no one else can end it. With the account gone, deleteGroup cannot be asked again, and nothing retries. The DID stays live, naming this host as its PDS, with nothing behind it. A related point: tombstone does not treat a last op that is already a tombstone as ended. It signs another, which fails. Today that case cannot be reached, since the store is deleted first, but a retry would hit it. The docs say the order and how tombstoned reads (recovery.md:98-108), but not this failure. No test covers it.

How to see it

Read against docs/fresh at 4636e6d, the code at: lifecycle.rs:95-106 (delete_account), lifecycle.rs:112-122 (tombstone). Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Keep a pending tombstone and retry it (like the notice outbox), or tombstone before deleting the store. Either way, make tombstone return Ok(true) when the last op is a tombstone, so a retry is safe. Answer an error, not tombstoned: false, when the publish failed.

Where

The host, as built from 4636e6d. Found while checking the docs against the code.