-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area/testingTesting related issuesTesting related issuesgood first issueThese are simple issues that can be picked up by new contributorsThese are simple issues that can be picked up by new contributorshelp wantedPlease help us fix this!Please help us fix this!kind/enhancementSomething could be better.Something could be better.
Description
Badger tests fail reliably on 32 bit machines and they need to be fixed.
The builds were enabled in #1392 but the build is failing currently.
Most of the failures have the following pattern
=== RUN TestRotate
badger 2020/06/30 16:00:14 INFO: All 0 tables opened in 0s
badger 2020/06/30 16:00:14 INFO: Got compaction priority: {level:0 score:1.73 dropPrefixes:[]}
badger 2020/06/30 16:00:14 INFO: All 0 tables opened in 0s
badger 2020/06/30 16:00:14 INFO: Replaying file id: 0 at offset: 0
badger 2020/06/30 16:00:14 INFO: Replay took: 2.962µs
badger 2020/06/30 16:00:14 INFO: Got compaction priority: {level:0 score:1.73 dropPrefixes:[]}
badger 2020/06/30 16:00:14 INFO: All 0 tables opened in 0s
badger 2020/06/30 16:00:14 INFO: Replaying file id: 0 at offset: 0
badger 2020/06/30 16:00:14 INFO: Replay took: 2.936µs
badger 2020/06/30 16:00:14 INFO: Got compaction priority: {level:0 score:1.73 dropPrefixes:[]}
badger 2020/06/30 16:00:14 INFO: All 0 tables opened in 0s
badger 2020/06/30 16:00:14 INFO: Replaying file id: 0 at offset: 0
badger 2020/06/30 16:00:14 INFO: Replay took: 3.116µs
TestRotate: rotate_test.go:91:
Error Trace: rotate_test.go:91
Error: Received unexpected error:
Map log file. Path=/tmp/badger-test181776523/000001.vlog. Error=cannot allocate memory
During db.vlog.open
github.com/dgraph-io/badger/v2/y.Wrapf
/home/travis/gopath/src/github.com/slyon/badger/y/error.go:82
github.com/dgraph-io/badger/v2.Open
/home/travis/gopath/src/github.com/slyon/badger/db.go:390
github.com/dgraph-io/badger/v2/badger/cmd.TestRotate
/home/travis/gopath/src/github.com/slyon/badger/badger/cmd/rotate_test.go:90
testing.tRunner
/home/travis/.gimme/versions/go1.14.linux.amd64/src/testing/testing.go:992
runtime.goexit
/home/travis/.gimme/versions/go1.14.linux.amd64/src/runtime/asm_386.s:1337
Test: TestRotate
--- FAIL: TestRotate (0.13s)
See https://travis-ci.org/github/dgraph-io/badger/jobs/703596743 for failed 32 bit build.
Metadata
Metadata
Assignees
Labels
area/testingTesting related issuesTesting related issuesgood first issueThese are simple issues that can be picked up by new contributorsThese are simple issues that can be picked up by new contributorshelp wantedPlease help us fix this!Please help us fix this!kind/enhancementSomething could be better.Something could be better.