-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: improve handling of contention on non-SQL keys
Previously, if we encountered contention on a non-SQL key, it would result in an error being logged every time `crdb_internal.transaction_contention_events` is populated. Properly decoding non-SQL keys doesn't seem trivial (plus it wouldn't easily map to columns in the virtual table), so this commit instead adjusts the logic in `getContentionEventInfo` to do a best-effort decoding, with erroneous cases being handled by including a hint into the `tableName` string. This should remove concerningly-looking errors from the logs and possibly provide better observability too. Release note: None
- Loading branch information
1 parent
9c91542
commit 7974916
Showing
2 changed files
with
40 additions
and
38 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