Closed reinkrul closed 3 years ago
Hey there, thanks for finding this and the detailed description. This issue should be fixed with the latest EliasDB version 1.1.0 using common 1.4.0.
$ go test -race ./racy_test.go
ok command-line-arguments 1.533s
Please reopen if this issue is still there.
Thanks!
First of all thanks for the nice piece of software. While POC-ing it in our software (https://github.com/nuts-foundation/) I came across a race condition (or rather,
go test -race
found it) in common'slockfile.go:219
(devt.de/krotik/common@v1.2.1/lockutil/lockfile.go:219
) on this line:It's triggered by
DiskGraphStorage.Close()
.You can reproduce it by running the following test with the
-race
flag:The output is as follows: