Closed KaiserKarel closed 5 years ago
That should be fixed now. By default the compression level is 10. You could override it from your code by setting the cellar.SetCompressionLevel(level)
I'm still getting
writer_test.go:270: maxVal 95684; maxBuffer 20267182; seed 1540218988936092485
panic: runtime error: index out of range [recovered]
panic: runtime error: index out of range
goroutine 11 [running]:
testing.tRunner.func1(0xc0000be100)
/home/travis/.gimme/versions/go1.11.linux.amd64/src/testing/testing.go:792 +0x6a7
panic(0x70f0a0, 0xb19e10)
/home/travis/.gimme/versions/go1.11.linux.amd64/src/runtime/panic.go:513 +0x1b9
github.com/carapace/cellar.TestFuzz(0xc0000be100)
/home/travis/gopath/src/github.com/carapace/cellar/writer_test.go:297 +0xe11
testing.tRunner(0xc0000be100, 0x74ff20)
/home/travis/.gimme/versions/go1.11.linux.amd64/src/testing/testing.go:827 +0x163
created by testing.(*T).Run
/home/travis/.gimme/versions/go1.11.linux.amd64/src/testing/testing.go:878 +0x651
FAIL github.com/carapace/cellar 1.772s
when trying to merge with my branch. Any clue why this is happening?
Seems that there have been some improvements in the compression algo (we are on v1.0.1). However updating requires changing two things
three references to CompressionLevel need to change
Also test need to be updated. This alteration will cause writer test to periodically fail with either:
Or
I don't really have enough knowledge of the db to fix the tests/verify if it is compatible with
lz4@v2
.