MUST A5: WipeExecutorService — one bad row stops the whole API + crash-loop on restart #172

Closed
opened 2026-11-12 06:30:53 +01:00 by amiryahaya · 0 comments
Owner

WipeExecutorService.cs:39-58,95-110: no per-item isolation, ExecuteAsync catches only OperationCanceledException, default BackgroundServiceExceptionBehavior.StopHost applies. One storage IOException or transient Npgsql failure = host down; row still due on restart = crash loop. Blob deletes also happen BEFORE commit (opposite of DeleteFile.cs:41-52 pattern) — same ordering in KillMember.cs:60-74. Fix: per-row try/catch (mirror SessionCleanupService.cs:39-46), commit DB first, best-effort blobs after.

WipeExecutorService.cs:39-58,95-110: no per-item isolation, ExecuteAsync catches only OperationCanceledException, default BackgroundServiceExceptionBehavior.StopHost applies. One storage IOException or transient Npgsql failure = host down; row still due on restart = crash loop. Blob deletes also happen BEFORE commit (opposite of DeleteFile.cs:41-52 pattern) — same ordering in KillMember.cs:60-74. Fix: per-row try/catch (mirror SessionCleanupService.cs:39-46), commit DB first, best-effort blobs after.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/failsulit#172
No description provided.