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

[1.12] pubsub/rabbitmq: return error if reconnect errors in Init #3199

Merged

Conversation

JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Oct 27, 2023

Backport of #3198

We should always return the error if we fail to connection during the
Init of a Component. This is because failing to do so has downstream
effects whereby a component is considered healthy when it is not.

Re-attempting an Init or otherwise whould be handled by the runtime,
rather than on a per-component basis.

Signed-off-by: joshvanl <[email protected]>
@JoshVanL JoshVanL requested review from a team as code owners October 27, 2023 10:41
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Attention: 510 lines in your changes are missing coverage. Please review.

Comparison is base (5384d54) 34.94% compared to head (77d2371) 35.44%.

❗ Current head 77d2371 differs from pull request most recent head 8efc1a1. Consider uploading reports for the commit 8efc1a1 to get more accurate results

Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.12    #3199      +/-   ##
================================================
+ Coverage         34.94%   35.44%   +0.50%     
================================================
  Files               241      240       -1     
  Lines             29914    29441     -473     
================================================
- Hits              10453    10436      -17     
+ Misses            18579    18122     -457     
- Partials            882      883       +1     
Files Coverage Δ
bindings/influx/influx.go 56.62% <ø> (ø)
configuration/azure/appconfig/appconfig.go 72.86% <ø> (ø)
internal/component/postgresql/metadata.go 85.71% <100.00%> (ø)
metadata/utils.go 63.82% <100.00%> (+0.75%) ⬆️
nameresolution/consul/configuration.go 94.82% <100.00%> (+0.13%) ⬆️
state/sqlite/sqlite_metadata.go 88.46% <100.00%> (+34.22%) ⬆️
internal/component/postgresql/postgresql_query.go 61.42% <0.00%> (ø)
state/postgresql/postgresql.go 0.00% <0.00%> (ø)
state/cockroachdb/cockroachdb.go 0.00% <0.00%> (ø)
pubsub/rabbitmq/rabbitmq.go 52.02% <0.00%> (-0.71%) ⬇️
... and 10 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@berndverst berndverst left a comment

Choose a reason for hiding this comment

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

Edit: somehow github told me to merge master into this... argh. I messed up the history - wasn't your fault @JoshVanL. Can you open / update this again? I wasn't able to merge it because Github said this was behind master for whatever reason, and updating the branch through the Github UI brought in all the wrong commits from master.

@JoshVanL JoshVanL force-pushed the release-1.12-pubsub-rabbitmq-init-error branch from 77d2371 to 8efc1a1 Compare October 27, 2023 17:50
@berndverst berndverst merged commit c23b191 into dapr:release-1.12 Oct 27, 2023
350 of 355 checks passed
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