And on panic error in the application, when the application got crashed and stop, during restart, app can no longer start as it is throwing above error.
What did you do?
Just do ./app
What did you expect to see?
Running of an app successfully but getting an error
What did you see instead?
while opening memtables error: while opening fid: 1 error: while updating skiplist error: while truncate file: /tmp/badger/00001.mem, error: truncate /tmp/badger/00001.mem: invalid argument
I have not set read only = false, but I assume this should be default as it is DB, there is 1 or 10 out of 100 chances that someone uses it for the read-only.
Edit:
I have set the ReadOnly=false now, But can’t find “truncate” option in “options.go” file, my badger version is v3.2011.1, am I missing something?