-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jobs: avoid race conditions in tests #98458
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
d944c53
to
545a9a3
Compare
TFYR bors r=miretskiy |
Build failed: |
bors r=miretskiy |
Build failed: |
bors r=miretskiy |
98458: jobs: avoid race conditions in tests r=miretskiy a=knz Needed for #98440. Epic: CRDB-23559 When investigating jobs created during cluster migrations I found that the unit tests in the jobs packages have a race condition with the registry, because they register new job types (adding new constructors) concurrently with job adoption occurring during startup (using constructors). This patch fixes it. Release note: None Co-authored-by: Raphael 'kena' Poss <[email protected]>
Build failed: |
bors r=miretskiy |
Build failed (retrying...): |
545a9a3
to
d9d858b
Compare
Canceled. |
bors r=miretskiy |
When investigating jobs created during cluster migrations I found that the unit tests in the jobs package have a race condition with the registry, because they register new job types (adding new constructors) concurrently with job adoption occurring during startup (using constructors). This patch fixes it. Release note: None
d9d858b
to
e0cfcc1
Compare
Canceled. |
bors r=miretskiy |
Build failed (retrying...): |
This PR was included in a batch that was canceled, it will be automatically retried |
Needed for #98440.
Epic: CRDB-23559
When investigating jobs created during cluster migrations I found that the unit tests in the jobs packages have a race condition with the registry, because they register new job types (adding new constructors) concurrently with job adoption occurring during startup (using constructors).
This patch fixes it.
Release note: None