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

core/rawdb: wait for background freezing to exit when closing freezer #22878

Merged
merged 1 commit into from
May 17, 2021

Conversation

holiman
Copy link
Contributor

@holiman holiman commented May 14, 2021

I revisited #20986, which contains some fixes regarding the shutdown of the background freezer. That PR is now stale, and some of the changes are already applied.

One remaining feature from that PR is to use a waitgroup to ensure that the shutdown takes effect, before proceeding to close the tables and eventually the database. If this is not performed, it may happen that the database is closed, which makes the freezer hit a log.Crit, causing an ungraceful termination.

This PR adds a waitgroup to the freezer to fix that behaviour.
Supersedes #20986

@fjl fjl added this to the 1.10.4 milestone May 17, 2021
@fjl fjl merged commit bb9f9cc into ethereum:master May 17, 2021
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
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