Review 2026-12-02: MQTT/Sparkplug rebirth storm, batched SUBSCRIBE failure, primary-host id + re-claim #988

Open
opened 2026-12-02 16:06:25 -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 §W2.2. Summary: docs/reviews/2026-12-02/00-SUMMARY.md.

Findings

  • M-1 (Medium) Sparkplug rebirth give-up counter is reset by the NBIRTH it provokes — permanent 10 s rebirth storm — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-2 (Medium) One malformed topic filter fails the single batched SUBSCRIBE — every tag on the driver goes dark — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-3 (Medium) Primary-host client id is the literal -spbhost when clientId is unset — drivers sharing a broker evict each other — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-6 (Medium) Sparkplug primary-host claim is never re-established once its connection goes Faulted — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-11 (Low) Sparkplug array metrics are boxed element by element, twice — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-12 (Low) Avoidable per-message allocations on the MQTT dispatcher thread — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-13 (Low) Abandoned subscription handles accumulate in _refsByHandle — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-14 (Low) MQTT browse ignores CONNACK and SUBACK verdicts — a refused subscribe is a silently empty tree — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md
  • M-15 (Low) Plain-mode Scalar/Raw boolean writes publish True / False — docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.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` §W2.2. Summary: `docs/reviews/2026-12-02/00-SUMMARY.md`. ## Findings - **M-1** (Medium) Sparkplug rebirth give-up counter is reset by the NBIRTH it provokes — permanent 10 s rebirth storm — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-2** (Medium) One malformed topic filter fails the single batched SUBSCRIBE — every tag on the driver goes dark — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-3** (Medium) Primary-host client id is the literal `-spbhost` when `clientId` is unset — drivers sharing a broker evict each other — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-6** (Medium) Sparkplug primary-host claim is never re-established once its connection goes `Faulted` — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-11** (Low) Sparkplug array metrics are boxed element by element, twice — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-12** (Low) Avoidable per-message allocations on the MQTT dispatcher thread — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-13** (Low) Abandoned subscription handles accumulate in `_refsByHandle` — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-14** (Low) MQTT browse ignores CONNACK and SUBACK verdicts — a refused subscribe is a silently empty tree — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.md` - **M-15** (Low) Plain-mode Scalar/Raw boolean writes publish `True` / `False` — `docs/reviews/2026-12-02/08-mtconnect-mqtt-heidenhain.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/mqtttype:review-findingpriority:p2 labels 2026-12-02 16:06:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#988