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

kv: fix transaction too large error message (#17198) #17219

Merged
merged 2 commits into from
May 19, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented May 14, 2020

cherry-pick #17198 to release-4.0


What problem does this PR solve?

The size hint in TxnTooLarge's message is the size limit of the staging buffer.

[kv:8004]Transaction is too large, size: 143

It is hard to understand.

What is changed and how it works?

Use the TxnTotalSizeLimit to generate error message.

Release note

  • Make the error message of Transaction is too large easier to understand.

@sre-bot
Copy link
Contributor Author

sre-bot commented May 14, 2020

/run-all-tests

@sre-bot sre-bot added sig/transaction SIG:Transaction type/4.0-cherry-pick type/enhancement The issue or PR belongs to an enhancement. labels May 14, 2020
@sre-bot sre-bot added this to the 4.0.0-rc.2 milestone May 14, 2020
@you06
Copy link
Contributor

you06 commented May 14, 2020

/approve

@bb7133 bb7133 modified the milestones: 4.0.0-rc.2, v4.0.0-ga May 19, 2020
@coocood
Copy link
Member

coocood commented May 19, 2020

LGTM

Copy link
Member

@jackysp jackysp 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
Copy link
Member

coocood commented May 19, 2020

/merge

@sre-bot
Copy link
Contributor Author

sre-bot commented May 19, 2020

Sorry @coocood, you don't have permission to trigger auto merge event on this branch.

@jebter
Copy link

jebter commented May 19, 2020

/run-unit-test

@jebter
Copy link

jebter commented May 19, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 19, 2020
@sre-bot
Copy link
Contributor Author

sre-bot commented May 19, 2020

/run-all-tests

@sre-bot sre-bot merged commit 6098373 into pingcap:release-4.0 May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/transaction SIG:Transaction status/can-merge Indicates a PR has been approved by a committer. type/enhancement The issue or PR belongs to an enhancement. type/4.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants