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

Fix trie sync OOM problems #2946

Merged
merged 7 commits into from
Apr 7, 2021
Merged

Conversation

iulianpascalau
Copy link
Contributor

  • fix trie sync OOM problems

@codecov
Copy link

codecov bot commented Mar 31, 2021

Codecov Report

Merging #2946 (ac891a0) into feat/trie-sync-fixes (dc2ea54) will increase coverage by 0.01%.
The diff coverage is 50.00%.

❗ Current head ac891a0 differs from pull request most recent head 48eb030. Consider uploading reports for the commit 48eb030 to get more accurate results
Impacted file tree graph

@@                   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     
Impacted Files Coverage Δ
epochStart/bootstrap/baseStorageHandler.go 54.09% <ø> (+4.09%) ⬆️
epochStart/bootstrap/metaStorageHandler.go 67.47% <ø> (+0.81%) ⬆️
epochStart/bootstrap/process.go 54.04% <0.00%> (+0.04%) ⬆️
epochStart/bootstrap/shardStorageHandler.go 67.40% <ø> (+0.55%) ⬆️
data/trie/sync.go 73.54% <100.00%> (ø)
ntp/syncTime.go 84.03% <0.00%> (-2.75%) ⬇️
core/computers.go 88.70% <0.00%> (-0.53%) ⬇️
p2p/libp2p/netMessenger.go 72.31% <0.00%> (ø)
consensus/broadcast/delayedBroadcast.go 84.63% <0.00%> (+1.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc2ea54...48eb030. Read the comment docs.

@sasurobert sasurobert self-requested a review March 31, 2021 13:45
@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will test 👍

@SebastianMarian SebastianMarian self-requested a review April 5, 2021 15:47
@iulianpascalau iulianpascalau marked this pull request as ready for review April 6, 2021 15:27
sasurobert
sasurobert previously approved these changes Apr 7, 2021
@iulianpascalau iulianpascalau changed the base branch from master to feat/trie-sync-fixes April 7, 2021 10:09
@iulianpascalau iulianpascalau dismissed sasurobert’s stale review April 7, 2021 10:09

The base branch was changed.

sasurobert
sasurobert previously approved these changes Apr 7, 2021
@@ -157,7 +156,9 @@ func (u *userAccountsSyncer) syncDataTrie(rootHash []byte, ssh data.SyncStatisti
return err
Copy link
Contributor

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 ?

@iulianpascalau iulianpascalau merged commit 510d092 into feat/trie-sync-fixes Apr 7, 2021
@iulianpascalau iulianpascalau deleted the fix-trie-sync-oom branch April 7, 2021 13:36
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.

None yet

3 participants