Galaxy: deploy-added alarm conditions stay 'unknown' until the gateway stream reopens #925

Closed
opened 2026-11-24 10:47:37 -05:00 by dohertj2 · 1 comment
Owner

A1 Galaxy initial-state signal (GatewayGalaxyAlarmFeed SnapshotDelivered) fires on every snapshot_complete sentinel. A sentinel comes only when the gateway stream opens or reopens.

Problem: a condition added by a deploy while the stream is up becomes known only at the next reopen. On a stable stream it stays unknown (Uncertain on the consumer) until then, and the F5 diagnostic eventually flags it. This is safe for the T2 invariant, but a deploy-added Galaxy alarm can stay Uncertain indefinitely.

Proposal: when the subscribed alarm set changes, have the driver request a fresh snapshot or sentinel from mxaccessgw if the gateway supports one. If it doesn't, file the matching mxaccessgw issue.

The A1 review also asked for F5 to be re-armed for refs a deploy adds; that makes the stall visible but does not resolve it. Source: the A1 drivers log in docs/plans/evidence/grpc-data-ext/A1-core.md.

A1 Galaxy initial-state signal (`GatewayGalaxyAlarmFeed` `SnapshotDelivered`) fires on every snapshot_complete sentinel. A sentinel comes only when the gateway stream opens or reopens. **Problem:** a condition added by a deploy while the stream is up becomes known only at the next reopen. On a stable stream it stays unknown (Uncertain on the consumer) until then, and the F5 diagnostic eventually flags it. This is safe for the T2 invariant, but a deploy-added Galaxy alarm can stay Uncertain indefinitely. **Proposal:** when the subscribed alarm set changes, have the driver request a fresh snapshot or sentinel from mxaccessgw if the gateway supports one. If it doesn't, file the matching mxaccessgw issue. The A1 review also asked for F5 to be re-armed for refs a deploy adds; that makes the stall visible but does not resolve it. Source: the A1 drivers log in `docs/plans/evidence/grpc-data-ext/A1-core.md`.
dohertj2 added the type:followuppriority:p2cross-repo labels 2026-11-24 10:47:37 -05:00
Author
Owner

Fixed on master 4ac83085 (merge 34ffc0a0). The driver calls mxaccessgw QueryActiveAlarms (already in client 0.4.0, no gateway change needed) when the subscription changes after the stream sentinel, replays entries as snapshot entries (live full-state messages supersede; an ack-only touch merges; a stream reopen during the query drops the replay) and then signals initial state. Single-flight + coalesced, 3 retries, Unimplemented not retried. F5 re-arm already existed. Not live-gated (wonder-box hold). Docs: docs/drivers/Galaxy.md #925 section.

Fixed on master 4ac83085 (merge 34ffc0a0). The driver calls mxaccessgw QueryActiveAlarms (already in client 0.4.0, no gateway change needed) when the subscription changes after the stream sentinel, replays entries as snapshot entries (live full-state messages supersede; an ack-only touch merges; a stream reopen during the query drops the replay) and then signals initial state. Single-flight + coalesced, 3 retries, Unimplemented not retried. F5 re-arm already existed. Not live-gated (wonder-box hold). Docs: docs/drivers/Galaxy.md #925 section.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#925