Scripted alarms: an operator command rejected after a failed deploy is reported Good to the caller #937
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Follow-up to #935. After a failed scripted-alarm load the engine ends the generation and rejects operator commands (
ScriptedAlarmCommandRejectedException) until the next good load. Thealarm-commandstopic is fire-and-forget, so the OPC UA method call / AdminUI action has already returned Good; the only trace is the host's Warning "… NOT applied — …". The condition node is unchanged so the alarm visibly stays unacknowledged, but the operator gets no error. Consider an ask-pattern reply (bounded) for Acknowledge/Confirm/Shelve so the method returns BadInvalidState (or similar) while the engine has no complete generation. Also: one transient failed deploy causes one duplicate activation per still-true alarm on the next good deploy (documented trade-off).Fixed on master
6b608459. Scripted-alarm Part 9 methods (Acknowledge/Confirm/Shelve/AddComment) and remote CallConditionMethod now report the engine's verdict: after a failed load they are refused BadInvalidState before the SDK applies anything; otherwise CallAsync (no Lock held) awaits a bounded ask to the local ScriptedAlarmHostActor — refused ⇒ BadInvalidState with the SDK-applied change reverted (mutation-counter guarded) and one corrective event; no answer ⇒ BadTimeout (outcome unknown, never claimed refused). Broadcast to the redundant peer only after a local Applied/Unknown (CommandId dedup). Node-wide cap 64 outstanding asks; requests past their deadline refused unsent; new quota OpcUa:Quotas:MaxNodesPerMethodCall (default 1000). Live F937 + A01/A02 pass (fu937-3). Two review rounds. Evidence docs/plans/evidence/followups/937.md. Follow-ups: #950 (AdminUI /alerts verdict), #951–#953. The duplicate-activation trade-off after a transient failed deploy is documented in docs/ScriptedAlarms.md.