fix(grpc-data): A4 review r1 — AdminUI helpers null-safe + doc comments restored; metric descriptions name both sides; docs: S1/S2/S3 behaviour, RefreshRequired only on a changed incomplete set, SourceName vs runtime status (S4), scripted Good = applied, A4-docs citations
This commit is contained in:
+11
-3
@@ -816,8 +816,14 @@ This section is what an OPC UA client of the **consumer** sees. Code: `OpcUaServ
|
||||
- re-creating the connection under a new id.
|
||||
- One origin condition seen through several mappings or placements (a native alarm under a Raw mapping and two equipment
|
||||
references) is **one** consumer condition with several placements.
|
||||
- **Primary placement** (chooses `SourceName`) comes from deployed config only: Raw mappings before UNS, then mapping id
|
||||
ordinal, then placement address ordinal. It never depends on stream order.
|
||||
- **Primary placement** (chooses `SourceName`) follows the deployed order: Raw mappings before UNS, then mapping id
|
||||
ordinal, then placement address ordinal. It never depends on stream order, and not on a mapping's runtime status
|
||||
(A4 review r1 S4): when the mapping that chose a condition's `SourceName` is merely not contributing (refused,
|
||||
`Unavailable`, retrying, `ConditionCapacity`, or not yet complete on a new stream), the condition keeps that `SourceName`
|
||||
even though only the other placements are materialised. It moves only when that mapping is known again and no longer
|
||||
lists the condition, or is no longer deployed (disabled, removed), or when a higher-priority mapping starts listing it.
|
||||
One residual case: a condition **first** seen while a higher-priority mapping is unavailable takes the best
|
||||
`SourceName` known, and moves to the deployed primary once that mapping lists it.
|
||||
|
||||
### Notifiers and delivery
|
||||
|
||||
@@ -839,7 +845,9 @@ This section is what an OPC UA client of the **consumer** sees. Code: `OpcUaServ
|
||||
conditions per `Lock` hold. Imported conditions are excluded from the local replay paths.
|
||||
- `RefreshRequiredEventType` (`SourceName = "Server"`) is queued, off `Lock`, only to the items that may see an affected
|
||||
condition. It is sent when:
|
||||
- a snapshot barrier is incomplete (a mapping timed out, was refused or its metadata failed);
|
||||
- a snapshot barrier is incomplete (a mapping timed out, was refused or its metadata failed) **and** its set of incomplete
|
||||
mappings differs from the previous barrier's (#930: a mapping that stays refused across streams does not repeat it; one
|
||||
that completes leaves the set, so a relapse is announced again);
|
||||
- an imported condition is removed (a complete re-snapshot no longer lists it, a `removed` record, a capacity
|
||||
eviction, or a secret rotation). Removal emits **no** `NodeDeleted` model change;
|
||||
- a resync leaves retained EventIds un-re-bindable (see EventIds below).
|
||||
|
||||
Reference in New Issue
Block a user