-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql, sqlstats: update sql stats compaction job async
Closes #85582 Currently, during sql stats compaction job scheduling, the schedule is retrieved by querying from the `system.scheduled_jobs` table. The function handling scheduling is called synchronously during node startup to ensure the first schedule, and can thus block node startup if the query experiences contention. This commit changes the scheduling setup to be called ascynchronously using a channel notification to ensure the stats collector does not block node startup. The callback for changing the cluster setting `SQLStatsCleanupRecurrence` is also modified to match this behaviour, now issuing a channel notification to update the schedule to the new value. Release justification: bug fix, low risk update to existing functionality Release note: None
- Loading branch information
Showing
3 changed files
with
65 additions
and
47 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