-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
panic when retstart the 0.7.0 client #2218
Comments
The log shows as below: |
FWIW I see the same issue. Panic is here: https://github.com/cberner/redb/blob/v0.13.0/src/multimap_table.rs#L110 The data seems corrupt in the on-disk redb. I definitely shut down the ord server cleanly before restarting it, so I'm not sure what's going on --something about multi maps is unsafe in v0.13.0 of redb. |
Okay, so the issue only occurs if the redb thinks it needs repair. I'm not sure multimaps are crash safe or Control-C safe. |
Also encountered this several times under the following circumstances
|
In my experience |
In this case, if you log In my case it was just gracefully stopping |
Okay, tracked this down to this redb commit: If I make the same modification on a local redb 0.13.0 checkout, the recovery works. Might be time to bump redb to 1.0.1 @raphjaph ? |
Raph has been working on a refactor PR for redb 0.20.0: #2141, so 1.0.1 seems far. I just checkout a new disk space to reorg for 0.7.0 and encountered the issue too, not sure if it will be an issue for most people or there's an official solution on that @raphjaph |
also encountered the same issue under exactly the circumstances described by @jack-linden.
had to delete the index db and re-index again. A bit frustrating |
how do you delete the index db and re-index again, do you have a specific command for that ? |
just look for the index.redb file and delete it, then |
same here, crushing again and again. |
I can confirm that when I pull in these changes to a local version of redb 0.13.0 it fixes the issue and I can reindex 0.7.0 fine even after ctrl-c or stopping the server. |
Discussed with @raphjaph - plan is to rebase our 0.20x redb update PR to master and verify it also fixes the issue. Alternative might be a manually patched redb 0.13.x but we'd prefer the proper redb update. |
same here |
Waiting for redb release, issue seems fixed in cberner/redb#627 |
Fixed by updating redb #2141 |
Even with the fix, I am still getting error thread 'main' panicked at 'internal error: entered unreachable code', /Users/xx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/redb-1.0.2/src/tree_store/btree.rs:546:18 |
The 0.7.0 client paniced when I restarted it after synchronizing to the lastest block.
The log shows as below:
How could I resolve the client?
It seems that it cannot be restarted after the client starts...
The text was updated successfully, but these errors were encountered: