What version of Go are you using (go version
)?
$ go version 1.14.2
What operating system are you using?
Ubuntu 20.04.2 LTS
What version of Badger are you using?
v3.2011.1
Does this issue reproduce with the latest master?
Yes
Steps to Reproduce the issue
nothing simple open database like:
bdb, err := badger.Open(badger.DefaultOptions("/tmp/badger"))
if err != nil {
log.Fatal(errorPrint(err.Error(), DB102))
}
defer bdb.Close()
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