-
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.
59539: ui: Sessions page reintegration r=elkmaster a=elkmaster update cluster-ui to latest version, minor updates to sessions, sessions details and statements details pages to provide new props needed by cluster-ui components. Release note (ui): none 60714: jobs,*: make job clients responsible for generating IDs r=lucy-zhang a=lucy-zhang jobs,*: make job clients responsible for generating IDs Job IDs used to be randomly generated in the job registry when creating a job, which meant that they were not stable across restarts when jobs were created in a txn closure meant to be idempotent. For `StartableJobs`, we also created a tracing span and registered the "new" job each time `CreateStartableJobWithTxn` was called, so these would leak in the presence of restarts. This commit adds a job ID argument to registry methods that create jobs, so that callers can generate stable IDs. It also modifies the `StartableJob` API to help ensure jobs (identified by a stable ID) are only registered once in the presence of restarts: `CreateStartableJobWithTxn` now takes a `*StartableJob`, and will not create a tracing span and register the job again if the reference is non-nil. This API is not ideal because it's probably easy to use it incorrectly, but it at least makes the correct behavior on txn restarts possible. Closes #57492 Release note: None ---- jobs: remove workaround for tracing span leak in registry This reverts the workaround added in 3ae0f06 to close the tracing span for job resumers prematurely to avoid a leak. Related to #60671. Release note: None Co-authored-by: v <carrott9@gmail.com> Co-authored-by: Lucy Zhang <lucy@cockroachlabs.com>
- Loading branch information
Showing
37 changed files
with
389 additions
and
257 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
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
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.