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

Use a more specific "in use" message for the tx killer's rollback #4576

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

dweitzman
Copy link
Member

Someone who accidentally made a huge transaction asked what this error meant:
"vttablet: rpc error: code = Aborted desc = transaction 1548379105148705713: in use: for rollback"

It's less clear than the typical transaction killed error because the transaction was so large that
rolling it back probably took some time. This diff changes the in use reason to "for tx killer rollback"
which will hopefully be more clear.

Signed-off-by: David Weitzman dweitzman@pinterest.com

Someone who accidentally made a huge transaction asked what this error meant:
"vttablet: rpc error: code = Aborted desc = transaction 1548379105148705713: in use: for rollback"

It's less clear than the typical transaction killed error because the transaction was so large that
rolling it back probably took some time. This diff changes the in use reason to "for tx killer rollback"
which will hopefully be more clear.

Signed-off-by: David Weitzman <dweitzman@pinterest.com>
@dweitzman dweitzman requested a review from sougou as a code owner January 31, 2019 01:21
@sougou sougou merged commit 331e3f2 into vitessio:master Jan 31, 2019
@dweitzman dweitzman deleted the tx_killer_borrow_text branch February 3, 2019 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants