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

ERROR - Node exit for an unexpected error: Corruption: SST file is ahead of WALs in CF acc_node_block #3128

Closed
nkysg opened this issue Dec 30, 2021 · 1 comment · Fixed by #3129
Assignees

Comments

@nkysg
Copy link
Collaborator

nkysg commented Dec 30, 2021

this error reported by @timyangnet
the starcoindb data is main block

@nkysg nkysg self-assigned this Dec 30, 2021
@nkysg
Copy link
Collaborator Author

nkysg commented Dec 30, 2021

timyangnet give db dir to me, then i test use this command

./starcoin -d ~/debug -n main console

and then output error

2021-12-30T18:12:16.221344+08:00 ERROR - Node exit for an unexpected error: Corruption: SST file is ahead of WALs in CF acc_node_block

i see the log at dir starcoindb/db/starcoindb/LOG, see this error

2021/12/30-18:12:16.216648 7000094f8000 [WARN] [db/db_impl/db_impl_open.cc:790] /Users/debug/main/starcoindb/db/starcoindb/015594.log: dropping 3521 bytes; Corruption: checksum mismatch

then i use this command

ls -l *.log
-rw-r--r--  1 ysg  staff  3203420 Dec 28 03:57 015594.log
-rw-r--r--  1 ysg  staff        0 Dec 28 03:57 015635.log

then i doubt this error because the disk is full, then timyangnet confirm this.
I find a issue at rocksdb Rocksdb failed to recover after disk full error #7784
then use this cmd

rm 015594.log 015635.log
./starcoin_db_exporter startup-info-back -n main -o ~/debug/main
./starcoin -d ~/debug -n main console
./starcoin_db_exporter startup-info-back -n main -o ~/debug/main

will back off 10000 block, because the rocksdb WAL buffer size default 64MB, 10000 block beyond this size
it work looks like fine.

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.

1 participant