badger icon indicating copy to clipboard operation
badger copied to clipboard

[BUG]: arm64 inconsistencies

Open dezren39 opened this issue 2 years ago • 3 comments

What version of Badger are you using?

v3.2103.2

What version of Go are you using?

https://github.com/charmbracelet/charm/issues/32

Have you tried reproducing the issue with the latest release?

No

What is the hardware spec (RAM, CPU, OS)?

arm64

What steps will reproduce the bug?

try to open try to open again it errors

Expected behavior and actual result.

try to open try to open again it doesn't error on second try

Additional information

Error: while opening memtables error: while opening fid: 3 error: while updating skiplist error: mremap size mismatch: r

https://github.com/charmbracelet/charm/issues/242

Error: During db.vlog.open error: while truncating last value log file: /root/.local/share/charm/cloud.charm.sh/kv/charm.sh.kv.user.default/000004.vlog error: mremap size mismatch: requested: 20 got: 20000000

Error: while opening memtables error: while opening fid: 9 error: while updating skiplist error: mremap size mismatch: requested: 20 got: 134217728

Error: while opening memtables error: while opening fid: 2 error: while updating skiplist error: mremap size mismatch: requested: 20 got: 134217728

Error: while opening memtables error: while opening fid: 1 error: while updating skiplist error: mremap size mismatch: requested: 148 got: 134217728

dezren39 avatar Oct 29 '23 08:10 dezren39

I have hit this same issue with github.com/dgraph-io/badger/[email protected] on both ARM32 and ARM64 architecture, resulting in data corruption:

Unable to open database: could not open database: while opening memtables error: while opening fid: 1 error: while updating skiplist error: mremap size mismatch: requested: 20 got: 134217728"

From what I see, similar issues in Ristretto are most likely related:

  • https://github.com/dgraph-io/ristretto/issues/314
  • https://github.com/dgraph-io/ristretto/pull/281

dkorunic avatar Nov 21 '23 07:11 dkorunic

This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

github-actions[bot] avatar Jul 15 '24 01:07 github-actions[bot]

Lack of response is quite indicative so far..

dkorunic avatar Jul 15 '24 07:07 dkorunic