gRPC data: a projected monitored item refused inside the item manager faults the whole CreateMonitoredItems request #961
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?
Found while fixing #940.
OrdinaryTagItemManager.CreateMonitoredItem(WarmStandby.cs) throwsServiceResultException(BadUserAccessDenied)whenTryAcquireProjectedItemfails. SDK 2.0.1CustomNodeManager2.CreateMonitoredItemscalls it underLockwith no catch, so the exception becomes a service fault for the whole request — every other item in the batch (ScadaBridge creates many per call) fails with it.#940 moved the known refusals (ACL denial, lapse) to a per-item classification in
OtOpcUaNodeManager.CreateMonitoredItemsbefore the SDK create, so this now only happens on the remainder: the authority changing between that probe and the create, andStartSubscriptionrefusing (stream capacityMaxStreams, a closing cohort). Those should also be per-item statuses (e.g.BadTooManyMonitoredItems/BadResourceUnavailable), e.g. by overriding the protectedCreateMonitoredItemto return the status instead of throwing.Fixed in
75e6ff9af(merged to master, not yet pushed); evidence docs/plans/evidence/grpc-data-ext/960-961.md (4x250 ms maxAge=0 reads: 1016 ms -> 285 ms). Post-merge: Runtime DataConnections 1010/1010, OpcUaServer.Tests 1460/2 skip, OpcUaServer.IntegrationTests GrpcData 39/39, Host 210/210, solution build clean. Not yet run on the gRPC data rig (rides #915).