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

Use MySqlException.IsTransient #1285

Closed
bgrainger opened this issue Jan 1, 2021 · 1 comment · Fixed by #1431
Closed

Use MySqlException.IsTransient #1285

bgrainger opened this issue Jan 1, 2021 · 1 comment · Fixed by #1431

Comments

@bgrainger
Copy link
Collaborator

mysql-net/MySqlConnector#849 called for DbException.IsTransient to be implemented in MySqlConnector.

I ended up using the same list of error codes as Pomelo does:

Once MySqlConnector > 1.3.0-beta.1 ships (with this change), Pomelo could update its method to simply delegate to MySqlException.IsTransient. This would let Pomelo benefit from any additional errors MySqlConnector considers to be transient in future versions.

OTOH, if you want to remain in control of this logic and not be affected by unexpected changes in MySqlConnector's implementation, then I understand that and you can close this issue. 😀

@lauxjpn
Copy link
Collaborator

lauxjpn commented May 16, 2021

Thanks, we are using it from now on.

Not considering MySqlErrorCode.CommandTimeoutExpired as transient as described in mysql-net/MySqlConnector#940 makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants