-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor some JetStream helper code, add support for specifying JetStream domain #3485
base: main
Are you sure you want to change the base?
Conversation
…ream domain Signed-off-by: Neil Alexander <[email protected]>
Signed-off-by: Neil Alexander <[email protected]>
4391466
to
f5a45e8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3485 +/- ##
==========================================
- Coverage 49.39% 49.38% -0.02%
==========================================
Files 524 524
Lines 59737 59751 +14
==========================================
- Hits 29507 29506 -1
- Misses 26748 26760 +12
- Partials 3482 3485 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
} else if err.Error() == "nats: Server Shutdown" { | ||
// The server is shutting down, but we'll rely on reconnect | ||
// behaviour to try and either connect us to another node (if | ||
// clustered) or to reconnect when the server comes back up. | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Neil Alexander <[email protected]>
Sytest is unhappy until #3471 is merged. |
This should gracefully handle some more potential errors that the consumer fetches can return with retries, as well as setting some client settings for reconnects etc when using an external NATS Server.
Also allow specifying the JetStream domain in case of a leafnode scenario and better manage client reuse across Dendrite. And also update NATS Server to 2.10.24 for good measure.
This code is backported from Harmony.
Signed-off-by: Neil Alexander [email protected]