Skip to content

Commit

Permalink
Use badger version with an ARM fix
Browse files Browse the repository at this point in the history
I hope this will fix the following critical error that I have seen
whenever writing a lot of data to Badger on my Raspberry Pi:

  Unable to truncate file: "[…]/000001.vlog" error: mremap size mismatch: requested: 271382146 got: 536870912

This error causes data loss (yikes.) It seems to have been fixed in
Ristretto already [1] so I'm going to try that.

[1] dgraph-io/ristretto#281
  • Loading branch information
46bit committed Sep 18, 2021
1 parent ed1bd8e commit 4d82184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions rendezvous_hashing/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module github.com/46bit/distributed_systems/rendezvous_hashing

go 1.15

replace github.com/dgraph-io/badger/v3 v3.2103.1 => github.com/46bit/badger/v3 v3.2103.1-with-arm-fix

require (
github.com/dgraph-io/badger/v3 v3.2103.1
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
Expand Down
4 changes: 2 additions & 2 deletions rendezvous_hashing/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/46bit/badger/v3 v3.2103.1-with-arm-fix h1:etTvubjS6my+Z0iKuf53ANayxw3zgBV4XCP7fcG/zhY=
github.com/46bit/badger/v3 v3.2103.1-with-arm-fix/go.mod h1:Zc1QYD5BZItQV+JBHWoxgx58irdq0fC5z4ZZ2O3RH3Y=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
Expand Down Expand Up @@ -30,8 +32,6 @@ github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwc
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dgraph-io/badger/v3 v3.2103.1 h1:zaX53IRg7ycxVlkd5pYdCeFp1FynD6qBGQoQql3R3Hk=
github.com/dgraph-io/badger/v3 v3.2103.1/go.mod h1:dULbq6ehJ5K0cGW/1TQ9iSfUk0gbSiToDWmWmTsJ53E=
github.com/dgraph-io/ristretto v0.1.0 h1:Jv3CGQHp9OjuMBSne1485aDpUkTKEcUqF+jm/LuerPI=
github.com/dgraph-io/ristretto v0.1.0/go.mod h1:fux0lOrBhrVCJd3lcTHsIJhq1T2rokOu6v9Vcb3Q9ug=
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 h1:tdlZCpZ/P9DhczCTSixgIKmwPv6+wP5DGjqLYw5SUiA=
Expand Down

0 comments on commit 4d82184

Please sign in to comment.