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

sealing: Fix restartSectors race #6491

Merged
merged 1 commit into from
Jun 15, 2021
Merged

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Jun 15, 2021

This caused TestDeadlineToggling (and likely other tests which pledged a bunch of sectors just after startup) to hang.

What happened was that before Sealing.restartSectors would run, some other place would start pledging a new sector, which would result in restartSectors sending a SectorRestart event, which would cause us to execute the sectors state planer twice, which then would result in the state planner getting duplicate events in wrong states.

@magik6k magik6k changed the base branch from master to release/v1.10.0 June 15, 2021 19:13
@magik6k magik6k force-pushed the fix/fsm-startup-race2 branch from a18e251 to 21ba740 Compare June 15, 2021 19:20
@magik6k magik6k requested review from arajasek and jennijuju and removed request for whyrusleeping and Kubuxu June 15, 2021 19:37
@magik6k magik6k merged commit d8e5359 into release/v1.10.0 Jun 15, 2021
@magik6k magik6k deleted the fix/fsm-startup-race2 branch June 15, 2021 21:16
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