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

mysql: add write conflict error for latch and change the error code of ErrTxnTooLarge #334

Merged
merged 1 commit into from
May 21, 2019

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented May 21, 2019

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.

Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
@jackysp jackysp requested review from tiancaiamao, lysu, coocood and crazycs520 and removed request for tiancaiamao May 21, 2019 09:30
@codecov
Copy link

codecov bot commented May 21, 2019

Codecov Report

Merging #334 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8395edb...fa940dc. Read the comment docs.

@@ -941,6 +943,4 @@ const (
ErrRegionUnavailable = 9005
ErrGCTooEarly = 9006
ErrWriteConflict = 9007

ErrTxnTooLarge = 9500
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change this?

Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Member Author

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.

@jackysp jackysp changed the title mysql: add write conflict error for latch mysql: add write conflict error for latch and change the error code of ErrTxnTooLarge May 21, 2019
@coocood
Copy link
Member

coocood commented May 21, 2019

LGTM

@kennytm kennytm added the status/LGT1 LGT1 label May 21, 2019
Copy link
Collaborator

@lysu lysu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@coocood coocood merged commit 4afa585 into pingcap:master May 21, 2019
alivxxx pushed a commit to alivxxx/parser that referenced this pull request Oct 22, 2019
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
alivxxx added a commit to alivxxx/parser that referenced this pull request Oct 22, 2019
@jackysp jackysp deleted the add_latch_error branch March 18, 2020 06:17
tiancaiamao pushed a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
lyonzhi pushed a commit to lyonzhi/parser that referenced this pull request Apr 25, 2024
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants