Skip to content

Revert "Reduce TrieNode allocations (#5457)" - #5529

Merged
kamilchodola merged 1 commit into
masterfrom
test/kch_revert_trie_optimization
Apr 3, 2023
Merged

kamilchodola merged 1 commit into
masterfrom
test/kch_revert_trie_optimization

Conversation

@kamilchodola

Copy link
Copy Markdown
Contributor

This reverts commit 5488e31.

Reverted this PR, because after investigation i've find out that this one causes Full Node not being able to sync properly.
On goerli node after around 500k blocks processed there was a TrieException.
Confirmed that 3 times (branch with this change vs without).

How to reproduce:
Nethermind.Runner.exe --config goerli_archive --Pruning.Mode=Hybrid

Wait for ~520k of blocks to be processed.

OBSERVATION
I've notice that if I'll run a branch WITHOUT this PR to about 400k blocks processed, stop gracefully node, switch to branch WITH this PR and wait for this 520k barrier, it will progress fine (may fail later in the process).
Because of that I assume, that this corrupts database earlier but it is being visible on 520 BUT node needs to be synced from scratch with this PR included.

Changes

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

@kamilchodola

Copy link
Copy Markdown
Contributor Author

On this reverted branch I'm already at 1mln processed blocks with no failure.

@Scooletz Scooletz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Repro does not lie. I don't know how to hammer it with tests so let's revert.

@kamilchodola
kamilchodola merged commit b458d99 into master Apr 3, 2023
@kamilchodola
kamilchodola deleted the test/kch_revert_trie_optimization branch April 3, 2023 12:33
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.

3 participants