-
Notifications
You must be signed in to change notification settings - Fork 338
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
Database Corruption Requires Resync #492
Comments
If you copy paste stuff like this, please indent it four spaces so it displays properly in Github |
I cannot reproduce this. If you can, please post instructions and/or try the above patch. |
I still cannot reproduce this. Here is what I tried:
This is not high priority, as it does not happen consistently, and a simple re-indexing fixes the problem when it occurs. |
Need to implement some logging to try to catch this next time it happens. |
Merged: 492-bugfix-open-fail #492 523-bugfix-multiple-blind-xfer #523 537-cleanup-remove-operation_get_required_authorities #537 540-cleanup-settle-volume-spam #540 542-bugfix-cancel-fee #542 557-bugfix-pts-address #557 559-test-fix-zero-block-wait #559 561-bugfix-serializer-build-broken #561 562-bugfix-unreflected-fields #562
The database was attempting to pop blocks for which there was no undo history. These changes make it impossible to pop blocks if there isn't a fork db history.
The database was attempting to pop blocks for which there was no undo history. These changes make it impossible to pop blocks if there isn't a fork db history.
2137820ms th_a db_management.cpp:125 open ] last_block->id(): 002400f7711cb44e5d23c06550d38dca546d53f2 last_block->block_num(): 2359543
2137820ms th_a db_management.cpp:133 open ] 10 assert_exception: Assert Exception
head_block_num() == 0: last block ID does not match current chain state
{}
th_a db_management.cpp:128 open
2137820ms th_a db_management.cpp:133 open ] data_dir: /root/bitshares-2/programs/witness_node/witness_node_data_dir/blockchain
2137820ms th_a application.cpp:438 startup ] 10 assert_exception: Assert Exception
head_block_num() == 0: last block ID does not match current chain state
{}
th_a db_management.cpp:128 open
rethrow
{"data_dir":"/root/bitshares-2/programs/witness_node/witness_node_data_dir/blockchain"}
th_a db_management.cpp:133 open
Shutting down a witness node before it receives any blocks results in this error the next time it starts up:
2137820ms th_a application.cpp:984 startup ] 10 assert_exception: Assert Exception
head_block_num() == 0: last block ID does not match current chain state
{}
th_a db_management.cpp:128 open
rethrow
{"data_dir":"/root/bitshares-2/programs/witness_node/witness_node_data_dir/blockchain"}
th_a db_management.cpp:133 open
rethrow
{}
th_a application.cpp:438 startup
2137821ms th_a main.cpp:192 main ] Exiting with error:
10 assert_exception: Assert Exception
head_block_num() == 0: last block ID does not match current chain state
{}
th_a db_management.cpp:128 open
rethrow
{"data_dir":"/root/bitshares-2/programs/witness_node/witness_node_data_dir/blockchain"}
th_a db_management.cpp:133 open
rethrow
{}
th_a application.cpp:438 startup
The text was updated successfully, but these errors were encountered: