-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
client: Txn.CleanupOnError
logs if transaction is already aborted
#10490
Comments
@bdarnell Assigning you on this, but please feel free to reassign! |
I don't fully understand the interaction between different errors here. It doesn't look possible to get a proper |
The error that prompted this issue was
This might be some sort of concurrency problem because we check for This is mainly a log spam issue - if it's happening a lot, we should probably change it from |
Hm, I didn't see any of those. On blue, I only saw two rollback errors, caused by deadlines being exceeded. Although I decided to check cyan now as well, and it does have a single instance of the transaction already being aborted. It has 5-10 "already committed" errors per node, though. None of this seems particularly bad to me. If anything, I'd say the error really worth quieting down a bit is the "does not exist" error, since it appears that the draining process before shutdown can lead to a lot of them. |
Txn.CleanupOnError
doesn't return an error, but it callslog.Errorf
if an error occurs during rollback, which will happen if the transaction is already known to be aborted (this error comes from the client package; no request is sent to the server in this case).We should at least handle the case of an already-aborted transaction silently, and for other kinds of errors
log.Error
is probably not the right way to handle it - this should probably go into the trace and not the server's log.The text was updated successfully, but these errors were encountered: