-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: 2.5.0
-
Component/s: GridFS
-
None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
When running the test suite for https://github.com/chirino/memory-service
I ran into the following data race in the mongo driver. I've now put in a mutex around calls to the mongo driver, which is not ideal. See the attached datarace.log for more details about the race.
Definition of done
You should run your unit test/integration tests with go test -race
that may allow you to reproduce this.
Pitfalls
What should the implementer watch out for? What are the risks?