Skip to content

Updated Secret try to reconnect the client #364

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

Merged
merged 9 commits into from
Mar 18, 2024
Merged

Updated Secret try to reconnect the client #364

merged 9 commits into from
Mar 18, 2024

Conversation

Gsantomaggio
Copy link
Member

@Gsantomaggio Gsantomaggio commented Mar 6, 2024

fixes #363

The new password is set before trying to reconnect

Gabriele Santomaggio added 3 commits March 6, 2024 14:55
The new password is set before trying to reconnect
the test is not need since the function updatesecrets has to check
if the locator is up and running like the other functions
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 18 lines in your changes are missing coverage. Please review.

Project coverage is 91.94%. Comparing base (18e63d1) to head (7034974).

Files Patch % Lines
RabbitMQ.Stream.Client/RoutingClient.cs 33.33% 6 Missing and 2 partials ⚠️
RabbitMQ.Stream.Client/ConnectionsPool.cs 65.00% 5 Missing and 2 partials ⚠️
RabbitMQ.Stream.Client/StreamSystem.cs 76.92% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
- Coverage   92.05%   91.94%   -0.12%     
==========================================
  Files         118      118              
  Lines       12075    12103      +28     
  Branches      930      936       +6     
==========================================
+ Hits        11116    11128      +12     
- Misses        741      757      +16     
  Partials      218      218              

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

@Gsantomaggio Gsantomaggio changed the title Fixes https://github.com/rabbitmq/rabbitmq-stream-dotnet-client/issue… Updated Secret try to reconnect the client Mar 11, 2024
@Gsantomaggio Gsantomaggio marked this pull request as ready for review March 11, 2024 11:51
@Gsantomaggio Gsantomaggio added this to the 1.8.2 milestone Mar 11, 2024
Gabriele Santomaggio and others added 3 commits March 11, 2024 13:29
The passowrd can change with the update secret so here we merge the current
configuration with the new possible configuration in order to use the last valid
password
@vivek-singh2
Copy link

Thanks @Gsantomaggio
Tested latest commit by breaking connection with RabbitServer (Didn't restart Rabbit Server) Pub/Sub connections were recovered.

@Gsantomaggio Gsantomaggio merged commit 906eb83 into main Mar 18, 2024
@Gsantomaggio Gsantomaggio deleted the fix_363 branch March 18, 2024 10:00
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.

On RabbitMQ restart, Updated Secret is not picked during connection recovery, resulting in broken publishers and subscribers
2 participants