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

Flush triedb during maintenance #2892

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

diegoximenes
Copy link
Contributor

Resolves NIT-3047

Once in a while it takes more than 5 seconds to produce a block.

It was observed that, in several instances, "Persisted trie from memory database" which is related to HashScheme commit operation, co-occur with taking a long time to produce a block, which could indicate a causal relationship.

As an attempt to avoid that issue this PR makes Maintenance to also flush triedb to disk.

Depends on OffchainLabs/go-ethereum#398

@diegoximenes diegoximenes changed the title Triedb commit maintenance Flush triedb during maintenance Jan 21, 2025
@diegoximenes diegoximenes force-pushed the triedb_commit_maintenance branch from 5c672e1 to 8311552 Compare January 21, 2025 17:21
@diegoximenes diegoximenes marked this pull request as ready for review January 21, 2025 19:36
execution/interface.go Outdated Show resolved Hide resolved
@diegoximenes diegoximenes force-pushed the triedb_commit_maintenance branch from 327dd54 to e9bda8d Compare January 24, 2025 13:44
@diegoximenes diegoximenes force-pushed the triedb_commit_maintenance branch from efa2661 to 9663e83 Compare January 24, 2025 13:50
@diegoximenes diegoximenes requested a review from tsahee January 24, 2025 15:53
execution/gethexec/executionengine.go Outdated Show resolved Hide resolved
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