Review 2026-12-02: MTConnect fault latch, subscription leak, cursor/parse/replay races #989

Closed
opened 2026-12-02 16:06:26 -05:00 by dohertj2 · 1 comment
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

  • M-4 (Medium) A fault that raises and clears inside one /sample chunk latches "Fault" on the condition's value tag — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-5 (Medium) MTConnect data subscriptions are never released on shutdown or re-init — one SubscriptionState leaks per reconnect — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-7 (Low) MTConnect ReadAsync restart detection advances the cursor without re-baselining the shared index — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-8 (Low) One malformed MTConnect observation fails the whole document, and so the whole driver — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-9 (Low) Subscribe's initial replay can overwrite a newer pushed value (MTConnect and MQTT) — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-10 (Low) MTConnect: unsubscribing the last handle can cancel a pump a concurrent subscribe relied on (latent) — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md

Notes

M-9 also applies to MQTT.

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 - **M-4** (Medium) A fault that raises and clears inside one `/sample` chunk latches "Fault" on the condition's value tag — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-5** (Medium) MTConnect data subscriptions are never released on shutdown or re-init — one `SubscriptionState` leaks per reconnect — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-7** (Low) MTConnect `ReadAsync` restart detection advances the cursor without re-baselining the shared index — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-8** (Low) One malformed MTConnect observation fails the whole document, and so the whole driver — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-9** (Low) Subscribe's initial replay can overwrite a newer pushed value (MTConnect and MQTT) — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-10** (Low) MTConnect: unsubscribing the last handle can cancel a pump a concurrent subscribe relied on (latent) — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` ## Notes M-9 also applies to MQTT. 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 type:review-findingpriority:p2 labels 2026-12-02 16:06:26 -05:00
Author
Owner

Fixed and pushed to master (origin/master da23fd970; push 708a4889c..da23fd970). See git log --grep '#989'; any remaining deploy gates / follow-ups are tracked as their own issues.

Fixed and pushed to master (origin/master da23fd970; push 708a4889c..da23fd970). See `git log --grep '#989'`; any remaining deploy gates / follow-ups are tracked as their own issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#989