-
Notifications
You must be signed in to change notification settings - Fork 44
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
when machine is shutdown accidentally, microstream storage is corrupted #590
Comments
The exception indicates that the transaction file has an invalid entry written. The “zero length” relates to the transaction entry header and contains the header length that is a constant value (see comment in one.microstream.storage.types.StorageTransactionsAnalysis.java). Nevertheless we must ensure that such erroneous transaction entries don’t prevent the storage from starting up if possible. @yqbjtu: Did you try to delete the transaction log before restarting the storage? Do you still have the corrupted transaction log files? Or did you check that files if they only contain zeros? |
the corrupted microstream files info : the transactions_0.sft size is 156M, When I delete transactions_0.sft, program fails to start A fatal error has been detected by the Java Runtime Environment:SIGSEGV (0xb) at pc=0x00000001180217bc, pid=10532, tid=33835JRE version: OpenJDK Runtime Environment Temurin-17.0.3+7 (17.0.3+7) (build 17.0.3+7)Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.3+7 (17.0.3+7, mixed mode, emulated-client, tiered, compressed class ptrs, z gc, bsd-aarch64)Problematic frame:v ~StubRoutines::jbyte_disjoint_arraycopyNo core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again |
do we have any plan to fix this issue? |
Environment Details
Describe the bug
I used the LazyArrayList to store my entity, the virtual machine is shutdown accidentally(not shutdown by man or plan, it is caused by some air condition issue ) , then I start my program by ‘systemctl start xxx’, it reports the following error
To Reproduce
Expected behavior
when the machine is shutdown accidentally, microstream storage is not corrupted
Screenshots
Additional context
my storage is opened by the following way.
The text was updated successfully, but these errors were encountered: