-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
MySQL errors: ERInnodbIndexCorrupt
#16851
MySQL errors: ERInnodbIndexCorrupt
#16851
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16851 +/- ##
==========================================
- Coverage 69.44% 69.43% -0.01%
==========================================
Files 1571 1571
Lines 202996 203086 +90
==========================================
+ Hits 140977 141020 +43
- Misses 62019 62066 +47 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use this in
go/vt/vttablet/tabletserver/tabletserver.go to convert from mysql error code to vitess error.
method: convertErrorCode
Signed-off-by: Shlomi Noach <[email protected]>
@harshit-gangal done. |
sqlerror.ErNoReferencedRow2, sqlerror.ERWarnDataOutOfRange: | ||
sqlerror.ErNoReferencedRow2, sqlerror.ERWarnDataOutOfRange, sqlerror.ERInnodbIndexCorrupt: | ||
errCode = vtrpcpb.Code_FAILED_PRECONDITION | ||
case sqlerror.EROptionPreventsStatement: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This got added under Internal Error in constants
but used as Failed_Precondition
.
// internal
ERInternalError = ErrorCode(1815)
ERInternalError = ErrorCode(1815)
ERInnodbIndexCorrupt = ErrorCode(1817)
We should align them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should align them.
Done.
Signed-off-by: Shlomi Noach <[email protected]>
concerns have been addressed
Description
Add
ERInnodbIndexCorrupt
(error 1817) to the list of known MySQL errors. This can be used in the future to recognize terminalApplySchema
or Online DDL scenarios.Related Issue(s)
none
Checklist
Deployment Notes