You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/03/25 01:57:19 UTC

[GitHub] [dubbo-go] whitekeyboard edited a comment on issue #1100: provider频繁上下线时,consumer端会panic

whitekeyboard edited a comment on issue #1100:
URL: https://github.com/apache/dubbo-go/issues/1100#issuecomment-806302521


   补充一下:
   日志中有“can't dial the server”的日志,dubbo协议的Refer函数会返回nil,导致上述的panic
   ```
   // Refer create dubbo service reference.
   func (dp *DubboProtocol) Refer(url *common.URL) protocol.Invoker {
   	exchangeClient := getExchangeClient(url)
   	if exchangeClient == nil {
   		logger.Warnf("can't dial the server: %+v", url.Location)
   		return nil
   	}
   	invoker := NewDubboInvoker(url, exchangeClient)
   	dp.SetInvokers(invoker)
   	logger.Infof("Refer service: %s", url.String())
   	return invoker
   }
   ```


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org