Review 2026-12-02: OpcUaClient recovery cost, orphaned unsubscribe, silent item failures, write status #992

Open
opened 2026-12-02 16:06:27 -05:00 by dohertj2 · 0 comments
Owner

From the 2026-12-02 full code review (master 708a4889c). Plan: docs/superpowers/plans/2026-12-02-review-remediation.md §W5. Summary: docs/reviews/2026-12-02/00-SUMMARY.md.

Findings

  • G-10 (Medium) In-place recovery re-publish is O(refs × monitored items) under the delivery lock — docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md
  • G-11 (Medium) UnsubscribeAsync removes the registry entry before it holds the gate; a cancelled wait orphans a live, still-delivering subscription — docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md
  • G-12 (Low) Per-item monitored-item create failures and unresolvable refs are silent on subscribe — docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md
  • G-13 (Low) A non-condition event from an authored alarm source is forwarded as Unspecified, which the host records as "Activated" — docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md
  • G-14 (Low) A write that fails after dispatch is reported BadCommunicationError ("did not reach the server") instead of BadTimeout ("outcome unknown") — docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md
  • G-15 (Low) Test Connect probes' TCP preflight is IPv4-only (OpcUaClient and Galaxy) — docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md

Each finding in the slice report carries file:line, failure scenario, suggested fix and the test to add. Most are from code reading: reproduce in a failing test first; close as not-a-defect with evidence if it doesn't reproduce.

From the 2026-12-02 full code review (master `708a4889c`). Plan: `docs/superpowers/plans/2026-12-02-review-remediation.md` §W5. Summary: `docs/reviews/2026-12-02/00-SUMMARY.md`. ## Findings - **G-10** (Medium) In-place recovery re-publish is O(refs × monitored items) under the delivery lock — `docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md` - **G-11** (Medium) `UnsubscribeAsync` removes the registry entry before it holds the gate; a cancelled wait orphans a live, still-delivering subscription — `docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md` - **G-12** (Low) Per-item monitored-item create failures and unresolvable refs are silent on subscribe — `docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md` - **G-13** (Low) A non-condition event from an authored alarm source is forwarded as `Unspecified`, which the host records as "Activated" — `docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md` - **G-14** (Low) A write that fails after dispatch is reported `BadCommunicationError` ("did not reach the server") instead of `BadTimeout` ("outcome unknown") — `docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md` - **G-15** (Low) Test Connect probes' TCP preflight is IPv4-only (OpcUaClient and Galaxy) — `docs/reviews/2026-12-02/07-galaxy-opcuaclient-historians.md` Each finding in the slice report carries file:line, failure scenario, suggested fix and the test to add. Most are from code reading: reproduce in a failing test first; close as not-a-defect with evidence if it doesn't reproduce.
dohertj2 added the driver/opcuaclienttype:review-findingpriority:p2 labels 2026-12-02 16:06:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#992