-
Notifications
You must be signed in to change notification settings - Fork 31
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
SqlUtils retry logic does not handle DB closed connections #216
Comments
@cgillum - Would it be OK for me and Misha to attempt to fix this issue and propose a solution? |
@microrama yes, if you’re able to find and submit a solution for this, we would be more than happy to accept it. It would be great to have a fix for this issue. |
Thanks @cgillum! This certainly is a bit more complicated but we will work with you for any approaches we have and of course test locally before and after hand as well. |
This is what's happening: POC: Bottomline: Fix: Next Steps: |
The code change was tested in our cert environment and it appears the issue is now fixed. We will still see the Warning but the Error is gone since we check for SqlConnection State and open the connection on the command object as needed. Next steps - I will create a PR for this issue for your review. Thx @cgillum! |
@microrama taking a look now - thanks! |
Thanks @cgillum!! |
SqlUtils retry logic is based on the idea that connection is live during retrying. But that is not always the case and it leads to the failure of retry loop.
Below is exception that triggered retry
And this is exception that caused retry to fail
The text was updated successfully, but these errors were encountered: