-
Notifications
You must be signed in to change notification settings - Fork 489
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: add write conflict error for latch and change the error code of ErrTxnTooLarge #334
Conversation
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #334 +/- ##
=======================================
Coverage 53.38% 53.38%
=======================================
Files 31 31
Lines 6519 6519
=======================================
Hits 3480 3480
Misses 2700 2700
Partials 339 339 Continue to review full report at Codecov.
|
@@ -941,6 +943,4 @@ const ( | |||
ErrRegionUnavailable = 9005 | |||
ErrGCTooEarly = 9006 | |||
ErrWriteConflict = 9007 | |||
|
|||
ErrTxnTooLarge = 9500 |
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.
Why change this?
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.
It is not a related change. But ErrTxnTooLarge is a TiDB error, it should not in the TiKV/PD section.
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.
It is better to keep the TiDB errors starts from 8000 and TiKV/PD's starts from 9000.
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.
I've updated the title and the description.
LGTM |
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.
LGTM
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Signed-off-by: Shuaipeng Yu jackysp@gmail.com
What problem does this PR solve?
Add write conflict error for latch and change the error code of ErrTxnTooLarge.