vipyxc-byte commented on issue #2981:
URL: https://github.com/apache/dubbo-go/issues/2981#issuecomment-3537746783

   > hi [@drama10096](https://github.com/drama10096) 
[@vipyxc-byte](https://github.com/vipyxc-byte) this bug is fixed in 
[#3071](https://github.com/apache/dubbo-go/pull/3071), try this
   > 
   > this bug was introduced in 
[#2726](https://github.com/apache/dubbo-go/pull/2726), the operation of 
`bi.url` set to nil and the access of url in 
`cluster/cluster/failover/cluster_invoker.go: 86` may happen concurrently, thus 
cause nil pointer access
   > 
   > ```
   > func (bi *BaseInvoker) Destroy() {
   >    logger.Infof("Destroy invoker: %s", bi.GetURL())
   >    bi.destroyed.Store(true)
   >    bi.available.Store(false)
   >    bi.url = nil
   > }
   > ```
   > 
   > k8s集群内的测试我也试过了 应该是没问题的
   > 
   > session already close 的问题我没复现出来 但是上文提到的偶发的panic在这个pr中被修复了
   
    session already 
close是频繁发布服务端偶现的,复现不出来的话,那我等偶发panic的pr发布后再通过destory+重建ref的方式尝试绕过session already 
close的问题,如果并发情况下问题得以解决,我会将方案同步到这里。感谢大佬的支持!


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