Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue339 try5 fail connections in main loop #1295

Merged
merged 5 commits into from
Nov 18, 2024

Conversation

petersilva
Copy link
Contributor

This is a third pass at not looping to retry broker connections in the amqp and mqtt moth drivers. They now attempt to connect once, and have an exponential backoff implementation to that they don't try to connect again too soon.

This is a preparatory change to, in future, being able to work with multiple broker connections, where if one fails the other still works. Without this change, when a failure in one broker happens, it will just loop trying to re-connect to it, and not even look at the available good connection to the other broker.

previous attempts : #1247

The first two patches here are different, in that it was split into two, so that, in the first patch, you see the substantive changes made to getSetup and putSetup (removing the loop, making it return instead.) the second patch, just fixes the indenting and gets rid of the now dead code (mqtt/putSetup was missed on first pass, so both changes combined in second patch for that routine.)

The remainder of the patches implement ebo (exponential back off) of broker connections.

Ran the flow tests... seems fine.

Copy link

Test Results

238 tests   235 ✅  1m 28s ⏱️
  1 suites    1 💤
  1 files      2 ❌

For more details on these failures, see this check.

Results for commit 0d42a3e.

@petersilva petersilva marked this pull request as ready for review November 14, 2024 15:44
Copy link
Member

@reidsunderland reidsunderland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed in meeting with @andreleblanc11 and @petersilva

@petersilva petersilva merged commit 7639d4c into development Nov 18, 2024
35 of 59 checks passed
@petersilva petersilva deleted the issue339_try5_fail_connections_in_main_loop branch November 26, 2024 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants