-
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.
69931: kvserver: add no-op safeguard to `TransferLeaseTarget` r=aayushshah15 a=aayushshah15 kvserver: add no-op safeguard to `TransferLeaseTarget` Release justification: adds no-op safeguard Release note: None 69945: sql: adjust recently added logging events for txn row count guardrails r=yuzefovich a=yuzefovich **sql: adjust txn rows written/read guardrails a bit** Release note (ops change): the meaning of the recently introduced `transaction_rows_written_err` and `transaction_rows_read_err` (as well as the corresponding `_log` variables) have been adjusted a bit to indicate the largest number of rows that is still allowed. In other words, originally reaching the limit would result in an error, and now only exceeding the limit would. Release justification: low-risk adjustment to new functionality. **sql: adjust recently added logging events for txn row count guardrails** This commit refactors the recently introduced `CommonTxnRowsLimitDetails` protobuf struct to make it more user-friendly (since it is used for logging and errors). Namely, the following changes are made: - `Limit` is changed to `NumRows` making it easier to understand - `ViolatesTxnRowsLimitErr` is removed since it is confusing - `IsRead` is removed too since it is redundant (the types of logged events contain the necessary "kind" information and this commit extends the logic of errors to contain the "kind" info too) and is confusing. Additionally, we will no longer log twice if `_err` guardrail is reached after `_log` was reached previously. Fixes: #69477. Release note: None (no release since this was introduced) Release justification: an update to the new functionality. Co-authored-by: Aayush Shah <aayush.shah15@gmail.com> Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
- Loading branch information
Showing
15 changed files
with
228 additions
and
304 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
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
Oops, something went wrong.