Closed shlomi-noach closed 5 days ago
Hello reviewers! :wave: Please follow this checklist when reviewing this Pull Request.
release notes (needs details)
label if users need to know about this change.-
), and have a clear help text.Jobs
should be named in order to mark it as required
.required
, the maintainer team must be notified._vt
tables and RPCs need to be backward compatible.vtctl
command output order should be stable and awk
-able.Attention: Patch coverage is 88.23529%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 67.42%. Comparing base (
216fd70
) to head (cb99a24
). Report is 1 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
go/mysql/sqlerror/constants.go | 0.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
Description
Some of MySQL errors include more fine grained handler error codes, as seen in
For example:
ERROR HY000: Got error 149 - 'Lock deadlock; Retry transaction' during COMMIT
Another example:
ER_ERROR_DURING_COMMIT
as described in https://github.com/vitessio/vitess/issues/17248.With this PR we formally introduce
HandlerErrorCode
. We addSQLError.HaErrorCode()
which uses regexp parsing on the error message to extract the handler error code, if any.Furthermore, some of these handler error codes indicate an unrecoverable error for vreplication.
We meanwhile add a sample of those.We list the full range of existing HA errors, and mark a select few as recoverable.Related Issue(s)
https://github.com/vitessio/vitess/issues/17248
Checklist
Deployment Notes