Closed ankur-anand closed 3 years ago
This can also be replicated running this library test along with -race
flag
It seems boltdb/bolt
is resizing an array from an unsafe pointer incorrectly here.
// Convert byte slice to a fake page and write the root node.
var p = (*page)(unsafe.Pointer(&value[bucketHeaderSize]))
Switching to go.etcd.io/bbolt
fixes the above issue too.
Hi,
When opening a new file in
NewBoltStore
-race condition test fails
Go Version Used:
go version go1.15.6 linux/amd64
How To reproduce locally.
Test:
Run Test with
-race
flag.go test -v err.go err_test.go -race
test will panic.