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.
jobs: fix panic when a job has lost its claim during update
Jobs can lose their claims. We detect when the claim doesn't match a new claim but we don't detect when the claim has been set to NULL (which is effectively equivalent). This is important because the way we clear claims is to set them to `NULL` and then we adopt jobs which have a `NULL` claim. This bug was introduced in cockroachdb#55120 and has been released only in the 21.1 alpha. Fixes cockroachdb#58049. Release note (bug fix): Fixed a bug from the previous alpha where the binary could crash if a running node lost its claim to a job while updating.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 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