Skip to content
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

Fix initialization race #12374

Merged
merged 5 commits into from
May 10, 2023
Merged

Fix initialization race #12374

merged 5 commits into from
May 10, 2023

Conversation

kasey
Copy link
Contributor

@kasey kasey commented May 8, 2023

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

The sync and initial-sync services directly call methods on the clock, and in the case of sync these calls may not always be blocked on the WaitForClock event, leading to a panic. This PR sets up zero-values for the *startup.Clock fields in those services, resulting in behavior similar to the previous startup code and avoiding panics.

Which issues(s) does this PR fix?

n/a

@kasey kasey requested a review from a team as a code owner May 8, 2023 21:45
@prylabs-bulldozer prylabs-bulldozer bot merged commit 7d9f369 into develop May 10, 2023
@prylabs-bulldozer prylabs-bulldozer bot deleted the fix-init-race branch May 10, 2023 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants