-
Notifications
You must be signed in to change notification settings - Fork 1k
backup and restore state subcommands do not support bonsai #9811
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Running besu operator x-backup-state or besu operator x-restore-state throws a ClassCastException because these subcommands are hardcoded to use Forest world state (ForestWorldStateArchive / ForestWorldStateKeyValueStorage), but the default storage format is now
Bonsai.
Steps to Reproduce
- Run a Besu node with default configuration (Bonsai storage format)
- Execute: besu operator x-backup-state --backup-path=/tmp/backup
Expected Behavior
The backup completes successfully, writing chain data and account state to the specified path.
Actual Behavior
A ClassCastException is thrown:
java.lang.ClassCastException: class org.hyperledger.besu.ethereum.trie.pathbased.bonsai.BonsaiWorldStateProvider
cannot be cast to class org.hyperledger.besu.ethereum.trie.forest.ForestWorldStateArchive
The same issue occurs with x-restore-state.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working