-
Notifications
You must be signed in to change notification settings - Fork 4.1k
jobs: migration to add job_type causes too much contention #105663
Copy link
Copy link
Closed
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.branch-release-23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.1
Description
See https://cockroachlabs.slack.com/archives/C04N0AS14CT/p1687897409947369.
The migration which adds job_type to system.jobs attempts to do it on one transaction. This locks up the whole jobs table. We should batch these updates.
Jira issue: CRDB-29143
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.branch-release-23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.1