$ go version go version go1.16.6 darwin/amd64
MacOS Big Sur 11.6
Create a persistent database with a large memtable size.
badger.DefaultOptions(cfg.Path). WithLoggingLevel(badger.WARNING). WithMemTableSize(64 << 25)
When creating a database with a large enough memtable size (more than 64 << 24) badger crashes. I believe this is related to an overflow in this line: https://github.com/dgraph-io/badger/blob/master/memtable.go#L569.
ERROR: Received err: File /db/data/00001.mem already exists. Cleaning up...
Are these large memtable sizes supported in general?