Repository navigation
feat(microservices): add "maxConnectionAttempts" option to RMQ, hide urls log - #10042
Merged
Merged
Conversation
4 of 15 tasks
Pull Request Test Coverage Report for Build 6db6b28b-452c-478b-be7c-8b9f6c3f2185
💛 - Coveralls |
4 of 12 tasks
kamilmysliwiec
added a commit
that referenced
this pull request
Oct 20, 2026
* fix(microservices): count every failed rmq connection attempt amqp-connection-manager emits "connectFailed" after every failed attempt and keeps reconnecting. Since the v11 refactor, ServerRMQ binds its handler with once(), so only the first failure is counted and a maxConnectionAttempts above 1 is never reached. listen() then never settles while the broker is down. Bind the handler with on() again, as #10042 did when it added the option. The handler already ignores events after the limit through settleListenCallback. * fix(microservices): reset rmq connection attempts on each start The counter was never reset, so a listen() after a failed one started above maxConnectionAttempts and never reached it. --------- Co-authored-by: Kamil Myśliwiec <mail@kamilmysliwiec.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #10029
What is the new behavior?
Does this PR introduce a breaking change?
Other information