sidecar: AahClientManagedAlarmEventWriter implements IAlarmEventWriter (PR C.1) #410
Reference in New Issue
Block a user
Delete Branch "track-c1-aah-alarm-writer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fourth PR of the alarms-over-gateway epic (docs/plans/alarms-over-gateway.md). Independent of Tracks A and B — the sidecar slot defined in
HistorianFrameHandler.cs:242(IAlarmEventWriter) is unwired today; PR C.2 (next) flips it on in Program.cs.Core.AlarmHistorian.HistorianWriteOutcomewhich is net10): Ack / RetryPlease / PermanentFail.IAlarmEventWriter, delegates to the backend, maps Ack→true / Retry|Permanent→false for the IPCbool[]reply contract. Backend exception → whole batch RetryPlease (preserves the sender's queue across transients rather than dropping). Wrong-count return defends against a backend bug desyncing queue accounting.Test plan
Follow-up
IAlarmEventWriterintoProgram.csbehind theOTOPCUA_HISTORIAN_ALARM_WRITE_ENABLEDtoggle.aahClientManagedSDK entry point against the dev rig — only changes the body ofSdkAlarmHistorianWriteBackend.WriteBatchAsync.