-
Notifications
You must be signed in to change notification settings - Fork 637
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
Properly handle garbage collection when we do state sync #3044
Comments
There are my thoughts:
It seems that removing
I suggest to rely on assumption 2 and replace
@bowenwang1996 @SkidanovAlex WDYT? |
That unfortunately doesn't always work. State sync isn't always invoked. When the node is close to the head of the network it will do block sync only. |
That's reasonable. Discussed with @SkidanovAlex. After new Sync will be implemented, there may be an opportunity to refactor |
Currently we use
reset_data_pre_state_sync
to delete data before state sync to prevent stale data from never being garbage collected. However, this is very aggressive and has caused issues if we need to access old data when we do state sync (#3042). It is desirable to remove such aggressive garbage collection to make code more maintainable. Therefore we shouldThe text was updated successfully, but these errors were encountered: