alan2016llg opened a new issue, #2549:
URL: https://github.com/apache/dubbo-go/issues/2549

   ### Environment
   
   <!-- 
   - Server: Dubbo-go, v3.0.5
   - Client: Dubbo-go, v3.0.5
   - Protocol: Triple
   - Registry: Nacos, v2.0.0
   -->
   
   - Server: 
   - Client: Dubbo-go, v3.1.0
   - Protocol: dubbo
   - Registry: zk
   
   ### Issue description
   我们的服务主要通过泛化方式调用dubbo服务,在一段时间后,程序会panic,详细错误看下面
   <!-- Here is a brief description about the issue. -->
   
   ### Logs
   
   <details><summary>Click me to check logs</summary>
   
   ```
   fatal error: concurrent map writes
   fatal error: concurrent map writes
   
   goroutine 252343 [running]:
   
   
dubbo.apache.org/dubbo-go/v3/registry/servicediscovery.(*ServiceInstancesChangedListenerImpl).OnEvent(0xc001e3af30,
 {0x26be600?, 0xc0014fdef0})
   
        
/home/zmn/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/registry/servicediscovery/service_instances_changed_listener_impl.go:64
 +0x98
   
   
dubbo.apache.org/dubbo-go/v3/registry/zookeeper.(*zookeeperServiceDiscovery).DataChange(0xc000350150,
 {{0xc0016de080, 0x34}, 0x0, {0xc0007a7500, 0x303}})
   
        
/home/zmn/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/registry/zookeeper/service_discovery.go:277
 +0x557
   
   
dubbo.apache.org/dubbo-go/v3/remoting/zookeeper.(*ZkEventListener).handleZkNodeEvent(0xc001e3acf0,
 {0xc0030e1be0, 0x20}, {0xc002cb4ae0, 0x2, 0x1?}, {0x269eb20, 0xc000350150})
   
        
/home/zmn/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/remoting/zookeeper/listener.go:213
 +0x536
   
   
dubbo.apache.org/dubbo-go/v3/remoting/zookeeper.(*ZkEventListener).startScheduleWatchTask(0xc001e3acf0,
 {0xc0030e1be0, 0x20}, {0xc002cb4ae0, 0x2, 0x2}, 0x8bb2c97000, {0x269eb20, 
0xc000350150}, 0xc00215d560)
   
        
/home/zmn/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/remoting/zookeeper/listener.go:430
 +0x19d
   
   
dubbo.apache.org/dubbo-go/v3/remoting/zookeeper.(*ZkEventListener).listenDirEvent(0xc001e3acf0,
 0x0, {0xc0030e1be0, 0x20}, {0x269eb20?, 0xc000350150}, {0x0, 0x0})
   
        
/home/zmn/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/remoting/zookeeper/listener.go:412
 +0x5b1
   
   
dubbo.apache.org/dubbo-go/v3/remoting/zookeeper.(*ZkEventListener).ListenServiceEvent.func1({0xc0030e1be0,
 0x20}, {0x269eb20?, 0xc000350150?})
   
        
/home/zmn/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/remoting/zookeeper/listener.go:470
 +0xb7
   
   created by 
dubbo.apache.org/dubbo-go/v3/remoting/zookeeper.(*ZkEventListener).ListenServiceEvent
   
        
/home/zmn/go/pkg/mod/dubbo.apache.org/dubbo-go/[email protected]/remoting/zookeeper/listener.go:465
 +0x1be
   
   ```
   
   </details>
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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