cvictory opened a new issue #1214:
URL: https://github.com/apache/dubbo-go/issues/1214


   跑 go run -race client.go,  race condtion检查不通过
   ```
   WARNING: DATA RACE
   Read at 0x00c0001444a8 by main goroutine:
     github.com/apache/dubbo-go/registry/directory.(*RegistryDirectory).List()
         
/Users/cvictory/go/pkg/mod/gitlab.alibaba-inc.com/middleware-go/[email protected]/registry/directory/directory.go:401
 +0x48
     
github.com/apache/dubbo-go/cluster/cluster_impl.(*failoverClusterInvoker).Invoke()
         
/Users/cvictory/go/pkg/mod/gitlab.alibaba-inc.com/middleware-go/[email protected]/cluster/cluster_impl/failover_cluster_invoker.go:57
 +0x8a
     github.com/apache/dubbo-go/common/proxy.DefaultProxyImplementFunc.func1.1()
         
/Users/cvictory/go/pkg/mod/gitlab.alibaba-inc.com/middleware-go/[email protected]/common/proxy/proxy.go:207
 +0x7ca
   .....
   
   Previous write at 0x00c0001444a8 by goroutine 67:
     
github.com/apache/dubbo-go/registry/directory.(*RegistryDirectory).setNewInvokers()
         
/Users/cvictory/go/pkg/mod/gitlab.alibaba-inc.com/middleware-go/[email protected]/registry/directory/directory.go:239
 +0xe9
     
github.com/apache/dubbo-go/registry/directory.(*RegistryDirectory).refreshAllInvokers()
         
/Users/cvictory/go/pkg/mod/gitlab.alibaba-inc.com/middleware-go/[email protected]/registry/directory/directory.go:205
 +0x2c4
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to