You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Deadlock found when trying to get lock; try restarting transaction
case MySqlErrorCode.LockDeadlock:
// Transaction branch was rolled back: deadlock was detected
case MySqlErrorCode.XARBDeadlock:
// Retry in all cases above
returntrue;
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. 😀
The text was updated successfully, but these errors were encountered:
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:
Pomelo.EntityFrameworkCore.MySql/src/EFCore.MySql/Storage/Internal/MySqlTransientExceptionDetector.cs
Lines 25 to 38 in 33b8d59
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. 😀
The text was updated successfully, but these errors were encountered: