Skip to content

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

Merged
sougou merged 1 commit intovitessio:masterfrom
dweitzman:tx_killer_borrow_text
Jan 31, 2019
Merged

Use a more specific "in use" message for the tx killer's rollback#4576
sougou merged 1 commit intovitessio:masterfrom
dweitzman:tx_killer_borrow_text

Conversation

@dweitzman
Copy link
Copy Markdown
Collaborator

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