docs(mqtt-bridge): bridge does not retry when the broker is down at start
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- documentation, testing
Research direction
Read the mqtt-bridge README and tests/e2e/tests/08-mqtt-bridge-errors.bats, focusing on the "broker unreachable" test and the reconnectPeriod option. Confirm the documented first-connection behavior against the issue’s reported error, then update the README and E2E test so they agree. Done means the README explains whether startup retries occur and the test matches that behavior.
Written by the indexing model from the issue text.
Description
Problem
When the MQTT broker is not reachable at start, mqtt-bridge exits at once:
Error: connect ECONNREFUSED 127.0.0.1:9999
It does not retry, although there is a reconnectPeriod / --mqtt-reconnect-period option. A reader may expect the bridge to wait for the broker (for example when both start at the same time after a reboot). The current behavior is fine for a supervisor that restarts the process, but it is not written down.
Done when
- The mqtt-bridge README says that the first connection is not retried and
reconnectPeriodapplies only after a successful connection (or the behavior is changed to retry, and the README says so). - The E2E test "broker unreachable" in
tests/e2e/tests/08-mqtt-bridge-errors.batsmatches the documented behavior.
Related: #766. Found while writing E2E tests for #340.
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 0
- Avg merge
- 13h 46m
- Merged PRs (30d)
- 58
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from groupsky/ya-modbus
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
codex-ok
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
codex-ok type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
codex-ok developer-experience scope:mqtt-bridge
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
All issues in groupsky/ya-modbus
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
review-followup
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
griffinwork40/agent-afk#5387 ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CodeManufactoryLLC/Code60#358 ·
Maintainers usually reply within 1 day
-
android:plan ios:plan main:plan packages:learn
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
th30d4y/OpenLearnX#767 · 1 comment ·
Maintainers usually reply within 1 day