-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: fix cleanup on connection close
Before this patch, if a pgwire connection was closed while in the Aborted state, we weren't rolling back the underlying KV txn. Its locks were never getting released. I think until recently we only had this bug in the RetryWait state, but it got worse when we merged the RetryWait and Aborted states. This patch fixes it by properly handling the case of the connection closing in the Aborted state by handling the NonRetriableError(IsCommit:True) event. Release note: None Release justification: bug fix
- Loading branch information
1 parent
1d2541c
commit 3639ec5
Showing
4 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.