You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're from dgraph (github.com/dgraph-io/dgraph) and we have been using your lock-free hash.
One thing that puzzled us recently is why the Go race detector detects race conditions in some of our Go packages, for example "query".
go test -race github.com/dgraph-io/dgraph/query/...
We thought the lock-free hash use atomics and should not have race conditions. Are these expected? Here is the output for the above run. Any suggestions would be most welcome!
I wrote this lib before I knew about the race detector (maybe before it existed?).
I ran the unit tests with -race, and found a lot of errors, and I'm moving through them quite quickly now since I don't have to change any logic, just add more atomic.Store/LoadXXX calls.
We're from dgraph (github.com/dgraph-io/dgraph) and we have been using your lock-free hash.
One thing that puzzled us recently is why the Go race detector detects race conditions in some of our Go packages, for example "query".
go test -race github.com/dgraph-io/dgraph/query/...
We thought the lock-free hash use atomics and should not have race conditions. Are these expected? Here is the output for the above run. Any suggestions would be most welcome!
The text was updated successfully, but these errors were encountered: