libnetwork
libnetwork copied to clipboard
DATA RACE in network.go and store.go
Hi all~
when i use TSAN to test docker,data race found in libnetwork store.go:148 and network.go:1165
when n.ctrlr is written in getNetworksFromStore()
it is read by CreateEndpoint()

is anybody has good idea to fix it? Thanks~
Thanks for reporting!
Note that the code in this repo has been moved to https://github.com/moby/moby/tree/master/libnetwork. This repo is effectively defunct, and not actively watched by maintainers.
Also, this code migh have changed in the last three years, and we're aware that there are races in some of our 'business logic' (although this one seems to be more like a 'technical race').
As such, let me close this issue.