fantiq commented on issue #15271:
URL: https://github.com/apache/dubbo/issues/15271#issuecomment-2955174592

   in `AbstractRegistryFactory#getRegistry`, if 
`NacosConnectionManager#createNamingService` throw Exception 
`IllegalStateException` and set `registry.check = false`,the variable 
`registry` will return `null`. maybe it can throw an Exception such as 
`RegistryCreateFailException` instead of return `null`.
   
   in `ServiceConfig#doExportUrl` we can catch the Exception 
`RegistryCreateFailException` and handler the exception by step:
   1. unexport the return `exporter`,
   2. record the fail registry
   
   in `ServiceConfig#doExportUrls` calculate the failure rate, if the rate out 
of bounds the service may export fail. we can add config 
`service.checkThreshold` defaine the failure rate.
   
   
   in `MultipleRegistry` the registry url from qs `reference-registry` and 
`service-registry`, the register and subscribe use the different connection. in 
`MultipleServiceDiscovery` the registry url from qs `child.*`. register and 
subscribe to share these connections.
   
   should we define Multiple failure behavior here, such as the failure rate of 
multiple connections.
   


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