rabbitmq-stream-dotnet-client
rabbitmq-stream-dotnet-client copied to clipboard
Change reconnection logic in ReliableBase
In response to #150
Thank you for your continued contributions. I just returned to work after some PTO, and @Gsantomaggio is out for a bit. We'll get to this when we can!
@ricsiLT thanks for your patience, I'm reviewing this today.
Yeah, test failures puzzled me too since I didn't understand why they wouldn't fail on main in the first place - chatted about it with @Gsantomaggio on Slack but he was busy with something else so I didn't get a clear answer about those tests :)
@Gsantomaggio when you get back, let's discuss the remaining test failure. When running the ConsumeAfterKillConnectionShouldContinueToWork test we can see that many connections are killed at the end of the test. I'm wondering if the new reconnection logic creates many new connections?
rabbitmq-stream-dotnet-client-151-failure-log.txt
I'm going to look into how to enable logging while running tests. Not sure how to do that now.
@ricsiLT Thanks for the PR!
I didn't check the code, but there must be a bug somewhere.
a lot of connections are recreated

This is why the assert Assert.Equal(1, connectionsKilled); fails.
@ricsiLT Thank you again for your contribution. I close this PR in favour of #163 !