-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: big genesis file #576
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #576 +/- ##
==========================================
+ Coverage 66.19% 66.39% +0.19%
==========================================
Files 277 278 +1
Lines 36946 37052 +106
==========================================
+ Hits 24456 24599 +143
+ Misses 10733 10682 -51
- Partials 1757 1771 +14
|
This reverts commit 100d340.
The e2e tests seem to fail all the time. E2e tests often have non-reproducible errors related to asynchronous processing, but this happens a lot, maybe there is still some code that has not been fixed enough. Looking at the error log, it seems that SIGSEGV is happening on validator04 out of the four validators. Is there anything we can do to help? |
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.
I left some comments. Could you explain it in the PR description? Thanks
Description
As the genesis.json file based migration progressed, the function to write and load large files to the db was required. The block size of leveldb is limited to 4gb. Therefore, if the genesis.json file exceeds 4gb, a way to divide and save it is needed.
100MB
units and save them in the db as keysgenesisDoc0
,genesisDoc1
, ...genesisDoc255
(here int means byte). When divided into larger units (1GB, ...), the test could not be successed due to ci error, so the size was set at 100MB. Also, since100MB * 255 = 25.5GB
in this case, I figured it would be fine in most cases.Closes: #577