Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
119411: kv: increment txn.restarts.writetooold on WriteTooOld error r=nvanbenschoten a=nvanbenschoten WriteTooOld errors were previously counted in either the `txn.restarts.writetooold` metric or the `txn.restarts.writetoooldmulti` metric, depending on when in the lifecycle of a transaction they were thrown. Now that WriteTooOld errors are rarely (never?) deferred, we would like to consolidate these metrics to avoid confusion. As a first step, we now increment `txn.restarts.writetooold` in both cases. In the next release, we can remove the `txn.restarts.writetoooldmulti` metric and its presence in the "Transaction Restarts" graph in the SQL Dashboard. Release note (ui change): The "Write Too Old" metric in the "Transaction Restarts" graph under the SQL Dashboard now includes all restarts previously categorized as "Write Too Old (multiple)". The former is a now a superset of the latter. The "Write Too Old (multiple)" metric will be removed in a future release. Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information