[P3] SSE snapshot built from two non-transactional reads (mixed-epoch) #6

Closed
opened 2026-07-02 16:43:58 +00:00 by a73x · 1 comment
a73x commented 2026-07-02 16:43:58 +00:00 (Migrated from git.a73x.sh)

[claude 2026-07-02] From architecture review (control plane). The SSE snapshot reads hosts and VMs in separate store calls without an enclosing read-tx, so a concurrent epoch bump between the two can yield a snapshot mixing two epochs. Cosmetic for an informational stream but violates logical consistency. Fix: build the snapshot inside a single read transaction and read epoch once. Ref internal/server/api/events.go + api snapshot builders.


Migrated from git-collab issue a788e7f902865836744bd921145aa49f005c26cc.

Original author: a73x dev@a73x.sh.

Close reason: Fixed by patch 4b953aa2

[claude 2026-07-02] From architecture review (control plane). The SSE snapshot reads hosts and VMs in separate store calls without an enclosing read-tx, so a concurrent epoch bump between the two can yield a snapshot mixing two epochs. Cosmetic for an informational stream but violates logical consistency. Fix: build the snapshot inside a single read transaction and read epoch once. Ref internal/server/api/events.go + api snapshot builders. --- Migrated from git-collab issue `a788e7f902865836744bd921145aa49f005c26cc`. Original author: a73x <dev@a73x.sh>. Close reason: Fixed by patch 4b953aa2
a73x commented 2026-07-03 12:34:44 +00:00 (Migrated from git.a73x.sh)

[claude 2026-07-03] Picking this up. Plan: build the SSE snapshot from a single store read transaction so hosts+vms+epoch are mutually consistent.

[claude 2026-07-03] Picking this up. Plan: build the SSE snapshot from a single store read transaction so hosts+vms+epoch are mutually consistent.
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
a73x/eitri#6
No description provided.