-
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.
117017: server: cleanup span download function r=dt a=dt * Move the tasks into their own free functions for readability and future testability. * Use GoAndWait to avoid mistakes around what runs in/out of group. * Use a nested group instead of counting channel sends for worker termination check. * Add commentary throughout. Release note: none. Epic: none. 117036: kv/tscache: improve error handling r=nvanbenschoten a=nvanbenschoten This commit improves the error handling in `intervalSkl` in two ways: 1. it guards `errors.Is` calls with `err != nil` checks. `errors.Is` is too expensive to call without this check, and it shows up in CPU profiles. 2. it panics on unexpected errors instead of silently dropping them. This mirrors the rest of the logic in this file. Epic: None Release note: None 117119: kv: don't consult ReadTimestamp in Transaction.LastActive r=nvanbenschoten a=nvanbenschoten Informs #101938. Without the synthetic timestamp bit, we don't know for sure whether the transaction's ReadTimestamp is a ClockTimestamp or not. To avoid comparing a future-time MVCC timestamp against a clock timestamp for purposes of detecting transaction liveness, we stop consulting the ReadTimestamp. This was always an unproven optimization anyway, so it's safe to remove. Release note: None Co-authored-by: David Taylor <[email protected]> Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information
Showing
5 changed files
with
132 additions
and
109 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