-
Notifications
You must be signed in to change notification settings - Fork 618
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
update_migration_17_18 #4055
update_migration_17_18 #4055
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kouprin it appears to me that this would still loop over all key values in ColBlockHeader
. Did I miss something?
@bowenwang1996 yes. I do think reading 20 mln Headers shouldn't take up for several hours. Please check my comment #4054 (comment). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me. As to the approach, I let the chain team decide.
@Kouprin did you have a chance to test it with mainnet data? |
It takes 13 minutes on my laptop. Should we proceed with this solution then? |
371263b
to
139798e
Compare
Off-topic: @bowenwang1996 @chefsale can we add CI jobs that try booting up a node from testnet and mainnet backups (RPC and archival) with some timeout? We had quite a few issues with |
@frol we definitely can. The issue is that then we have to set a pretty small timeout (not more than 10 minutes for example) to avoid blocking CI. |
139798e
to
a773d29
Compare
@frol @bowenwang1996 we currently run a canary on testnet which runs master, if we added the CI you would have a small canary time as mentioned. It is a daily canary and could be easily changed to run on every commit instead of a scheduled time. Canary pretty much catches all these issues right now, but on a daily matter and we manually revert the change if this causes an issue. One of the ideas I had was to create a job which would automatically revert from master if there was a commit which broke the node. |
Fixes #4054.
Tested on
gc_sync_after_sync.py
andstate_sync_late.py
tests.