Crash when .lock files are present #2050
Labels
bug
bug
community
community
Effort - Unknown
Effort - Unknown
Frequency - Daily
Frequency - Daily
Reach - VeryFew
Reach - VeryFew
Severity - S2
Severity - S2
Memgraph version
2.14.1
Environment
Describe the bug
After several restarts during node pool update, memgraph didn't delete lock files in /var/lib/memgraph directory and subdirectories. Process was probably killed by host operating system, during node restart. After starting pod again, main process in container crashes without error messages and gets sigsegv.
Manually removing all lock files solves the issue, but it's difficult to spot the problem with only sigsegv information.
To Reproduce
Steps to reproduce the behavior:
This problem existed only on kubernetes cluster with /var/lib/memgraph on NFS. On the same image and data, but running directly via docker, problem doesn't exist and memgraph starts even with existing lock files.
Expected behavior
When .lock files are present, memgraph should exit gracefully, showing information about existing lock files. Don't get sigsegv.
Logs
Dmesg logs looks like:
INFO TIMESTAMPZ [resource.labels.instanceId: xyzxyzxyz] traps: memgraph[pid] general protection fault ip:7a40b7050602 sp:7ffc98f66630 error:0 in libc-2.31.so[7a40b7050000+159000]
Verification Environment
Do you need:
The text was updated successfully, but these errors were encountered: