forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
131951: changefeedccl: reduce use of errors during pauseOrResumePolling r=stevendanna a=wenyihu6 Previously, errors were constructed and compared in pauseOrResumePolling solely to indicate that pausing cannot be stopped and period table history scan is necessary during pauseOrResumePolling. However, no actual errors were returned from pauseOrResumePolling. This error handling introduced unnecessary CPU overhead in this hot path, as observed during escalations and DRT scale testing. This patch improves performance by replacing error-based communication with a boolean check. Fixes: cockroachdb#131327 Release note (performance improvement): Enhanced performance when schema_locked is not in use by improving error handling during periodic table history polling. ``` PauseOrResumePolling-8 16.796µ ± 1% sec/op 3.704µ ± 3% sec/op -77.95% (p=0.000 n=10) PauseOrResumePolling-8 7.098Ki ± 0% B/op 2.027Ki ± 0% B/op -71.44% (p=0.000 n=10) PauseOrResumePolling-8 145.00 ± 0% allocs/op 36.00 ± 0% allocs/op -75.17% (p=0.000 n=10) ``` 132177: server/license: Change how trial license usage is tracked r=rafiss a=spilchen There’s a race condition when updating the enterprise.license config setting and checking the trial usage count. If a node starts up while a new trial license is being applied, it can encounter an issue where it sees the updated trial usage count in KV before receiving the corresponding enterprise.license config setting. This causes the license update to be rejected, as it incorrectly assumes a trial license has already been used. This change addresses the issue by modifying what is stored in the KV for the trial license. Instead of tracking the number of trial licenses used, which would ever be 0 or 1, we now store the expiry timestamp of any active or past trial license. The enterprise.license validation function will compare the expiry of the new license against the cached value from KV. If the expiry timestamp is not set or matches the expiry of the new license, the validation will proceed. Otherwise, it will fail as before. This change will be backported to 24.2, 24.1, 23.2 and 23.1. Epic: CRDB-39988 Closes cockroachdb#131968 Release note: none 132189: workflows: delete add issue to project workflow file r=rail a=rickystewart This use case is subsumed by project workflows ([ref](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations)). Part of: DEVINF-1313 Epic: DEVINF-1006 Release note: None Co-authored-by: Wenyi Hu <[email protected]> Co-authored-by: Matt Spilchen <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
9 changed files
with
162 additions
and
119 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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.