fix(api): M9-audit batch A — wipe executor isolation, kill ordering, share cleanup #188

Merged
amiryahaya merged 1 commit from fix/m9-audit-server-wipe into main 2026-11-12 07:51:07 +01:00
Owner

Closes #172, closes #176, closes #177 (umbrella #167; smalls tracked there).

#172 WipeExecutorService per-row isolation (poisoned rows retry next sweep; StopHost crash-loop closed) + commit-first/blobs-best-effort ordering — also in KillMember (+ StoragePath guard).
#176 executor re-reads each WipeSetup before executing — a cancel landing mid-sweep wins (no more wipe-after-confirmed-cancel).
#177 outbound + deleted-file inbound shares die with wiped content; kill delete_content=true does the same (retention kill keeps shares deliberately).

Smalls: ?delete_content parses its VALUE; abandoned pending uploads swept after 7 days (row + best-effort blob); concurrent wipe/setup takes over the unique-index winner row.

Rebased on #186. 6 new tests; suite 1029/0/39.

Closes #172, closes #176, closes #177 (umbrella #167; smalls tracked there). **#172** WipeExecutorService per-row isolation (poisoned rows retry next sweep; StopHost crash-loop closed) + commit-first/blobs-best-effort ordering — also in KillMember (+ StoragePath guard). **#176** executor re-reads each WipeSetup before executing — a cancel landing mid-sweep wins (no more wipe-after-confirmed-cancel). **#177** outbound + deleted-file inbound shares die with wiped content; kill delete_content=true does the same (retention kill keeps shares deliberately). Smalls: ?delete_content parses its VALUE; abandoned pending uploads swept after 7 days (row + best-effort blob); concurrent wipe/setup takes over the unique-index winner row. Rebased on #186. 6 new tests; suite 1029/0/39.
fix(api): M9-audit batch A — wipe executor isolation + kill ordering + share cleanup (#172,176,177 + smalls)
All checks were successful
API CI / build-and-test (pull_request) Successful in 7m18s
Security CI / security-scan (pull_request) Successful in 3m28s
883984d8d1
#172: WipeExecutorService per-row try/catch (poisoned rows retry next
sweep instead of crashing the host via StopHost); DB deletes commit
FIRST, blob deletes best-effort after (DeleteFile ordering) — same
reordering in KillMember + StoragePath guard + ILogger marker.

#176: executor re-reads each WipeSetup row before executing — a cancel
or re-arm landing mid-sweep wins over the stale snapshot (the server no
longer wipes an account it just told the user was cancelled).

#177: wipe deletes the target's outbound shares + inbound shares of
deleted files; kill does the same for delete_content=true (retention
kill keeps shares — the content owner still governs that access).

Smalls: ?delete_content now parses its VALUE (false no longer deletes);
abandoned pending uploads swept after 7 days (rows + best-effort
blobs); concurrent wipe/setup takes over the unique-index winner row
instead of 500ing.

Tests: 6 new (M9AuditBatchATests). Suite 1029/0/39.
Sign in to join this conversation.
No description provided.