besu icon indicating copy to clipboard operation
besu copied to clipboard

Worldstate Sync Does Not Resume from where it left off following a restart

Open non-fungible-nelson opened this issue 2 years ago • 4 comments

Description

As a user, I would like for my worldstate download to resume from where it left off if my node restarts during sync. This will give me a better UX if I have to restart my node for sync related (or unrelated) issues.

Acceptance Criteria

  • Worldstate sync can continue across a restart.

Steps to Reproduce (Bug)

  1. Begin sync and restart the node
  2. Stop node
  3. Restart node and have world state sync start from scratch

Expected behavior: [What you expect to happen]

  1. Begin sync and restart the node
  2. Stop the node
  3. Restart node and have world start sync start from where it left off

Frequency: [What percentage of the time does it occur?] All the time

Versions (Add all that apply)

  • Software version: 22.7.1

non-fungible-nelson avatar Aug 23 '22 15:08 non-fungible-nelson

Bump for this.

My worldstate was already completed, but my client was still syncing (importing chain segments). I restarted besu to try some java heap size options and noticed the worldstate started from 0.0%.

terahertz5k avatar Aug 27 '22 21:08 terahertz5k

+1

As a relatively new user of Besu I have restarted the service doing minor, or none, configuration changes not realising this would incur a massive downtime penalty.

Suggestion: Additional/clearer logs that communicate that the node is healthy, such that non-expert Besu users don't feel the need to turn it off and on again.

EdwardPrentice avatar Sep 17 '22 06:09 EdwardPrentice

Affects 22.7.2 as well

EdwardPrentice avatar Sep 17 '22 06:09 EdwardPrentice

What is the ETA for this fix? Please make this a priority.

I cannot afford to wait 1-2 days to sync the world state from 0 whenever I restart Besu.

felix-halim avatar Oct 12 '22 06:10 felix-halim

This is implemented on 22.10.0 - @Felix-halim

non-fungible-nelson avatar Nov 08 '22 17:11 non-fungible-nelson