-
Notifications
You must be signed in to change notification settings - Fork 198
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
Fix trie sync OOM problems #2946
Conversation
iulianpascalau
commented
Mar 31, 2021
- fix trie sync OOM problems
Codecov Report
@@ Coverage Diff @@
## feat/trie-sync-fixes #2946 +/- ##
========================================================
+ Coverage 74.89% 74.91% +0.01%
========================================================
Files 613 613
Lines 58669 58645 -24
========================================================
- Hits 43941 43933 -8
+ Misses 10797 10783 -14
+ Partials 3931 3929 -2
Continue to review full report at Codecov.
|
update/sync/syncAccountsDBs.go
Outdated
@@ -155,7 +155,8 @@ func (st *syncAccountsDBs) syncAccountsOfType(accountType genesis.Type, trieID s | |||
return err | |||
} | |||
|
|||
st.setTries(shardId, accAdapterIdentifier, rootHash, accountsDBSyncer.GetSyncedTries()) | |||
//TODO(iulian) fix here in this PR |
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.
this whole thing works without this :D maybe from accountsDBSyncer you can take those.
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.
will test 👍
@@ -157,7 +156,9 @@ func (u *userAccountsSyncer) syncDataTrie(rootHash []byte, ssh data.SyncStatisti | |||
return err |
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.
Not need to call u.throttler.EndProcessing() on return err cases in this method ?