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

Dangling trie nodes after full cleanup #16907

Closed
holiman opened this issue Jun 5, 2018 · 0 comments · Fixed by #16945
Closed

Dangling trie nodes after full cleanup #16907

holiman opened this issue Jun 5, 2018 · 0 comments · Fixed by #16945
Assignees

Comments

@holiman
Copy link
Contributor

holiman commented Jun 5, 2018

System information

Commit hash : 400332b99d4eacb6aa509339fa39460b68f76ee7

Expected behaviour

Importing the attached blocks should not result in Dangling trie nodes after full cleanup
blocks.zip

The blocks are the first couple of thousand mainnet blocks.

Actual behaviour

$ build/bin/geth --datadir /tmp/bazonk import blocks.rlp
INFO [06-05|23:14:16] Maximum peer count                       ETH=25 LES=0 total=25
INFO [06-05|23:14:16] Allocated cache and file handles         database=/tmp/bazonk/geth/chaindata cache=768 handles=1024
INFO [06-05|23:14:16] Writing default main-net genesis block 
INFO [06-05|23:14:16] Persisted trie from memory database      nodes=12356 size=1.88mB time=37.3009ms gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [06-05|23:14:16] Disk storage enabled for ethash caches   dir=/tmp/bazonk/geth/ethash count=3
INFO [06-05|23:14:16] Disk storage enabled for ethash DAGs     dir=/home/user/.ethash      count=2
INFO [06-05|23:14:16] Loaded most recent local header          number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [06-05|23:14:16] Loaded most recent local full block      number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [06-05|23:14:16] Loaded most recent local fast block      number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [06-05|23:14:16] Importing blockchain                     file=blocks.rlp
INFO [06-05|23:14:24] Imported new chain segment               blocks=1584 txs=0 mgas=0.000 elapsed=8.000s mgasps=0.000 number=1584 hash=cf0aca…2fc5b1 cache=462.80kB
INFO [06-05|23:14:25] Imported new chain segment               blocks=916  txs=0 mgas=0.000 elapsed=1.056s mgasps=0.000 number=2500 hash=dcdb0a…b6c720 cache=486.27kB
INFO [06-05|23:14:28] Imported new chain segment               blocks=956  txs=0 mgas=0.000 elapsed=2.781s mgasps=0.000 number=3456 hash=1ac895…9ccc3b cache=513.40kB
INFO [06-05|23:14:28] Writing cached state to disk             block=3456 hash=1ac895…9ccc3b root=d99598…a85e1d
INFO [06-05|23:14:28] Persisted trie from memory database      nodes=653   size=156.01kB time=3.230582ms gcnodes=19053 gcsize=7.33mB gctime=55.222814ms livenodes=709 livesize=270.22kB
INFO [06-05|23:14:28] Writing cached state to disk             block=3455 hash=fe07ab…ff7489 root=b6ae8e…67faa5
INFO [06-05|23:14:28] Persisted trie from memory database      nodes=5     size=2.02kB   time=48.341µs   gcnodes=0     gcsize=0.00B  gctime=0s          livenodes=704 livesize=268.20kB
INFO [06-05|23:14:28] Writing cached state to disk             block=3329 hash=43caf8…cac1fe root=c83626…a1fed3
INFO [06-05|23:14:28] Persisted trie from memory database      nodes=160   size=47.28kB  time=651.563µs  gcnodes=0     gcsize=0.00B  gctime=0s          livenodes=544 livesize=220.93kB
ERROR[06-05|23:14:28] Dangling trie nodes after full cleanup 
INFO [06-05|23:14:28] Blockchain manager stopped 
Import done in 11.876236127s.

Compactions
 Level |   Tables   |    Size(MB)   |    Time(sec)  |    Read(MB)   |   Write(MB)
-------+------------+---------------+---------------+---------------+---------------

Read(MB):0.00000 Write(MB):6.52393
Trie cache misses:  0
Trie cache unloads: 0

Object memory: 231.579 MB current, 343.589 MB peak
System memory: 402.530 MB current, 395.963 MB peak
Allocations:   5.432 million
GC pause:      1.963472ms

Compacting entire database...
Compaction done in 79.81669ms.

Compactions
 Level |   Tables   |    Size(MB)   |    Time(sec)  |    Read(MB)   |   Write(MB)
-------+------------+---------------+---------------+---------------+---------------
   0   |          0 |       0.00000 |       0.04368 |       0.00000 |       3.95302
   1   |          2 |       3.53918 |       0.03262 |       3.95302 |       3.53918

Read(MB):3.87999 Write(MB):14.01646
INFO [06-05|23:14:28] Database closed                          database=/tmp/bazonk/geth/chaindata

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 a pull request may close this issue.

2 participants