wangzihaogithub 5 years ago
parent 8c13863fb8
commit a32d4f9767

@ -226,6 +226,10 @@ public abstract class AbstractSpringCloudRegistry extends FailbackRegistry {
// fix https://github.com/alibaba/spring-cloud-alibaba/issues/753
// Re-obtain the latest list of available metadata address here, ip or port may change.
// by https://github.com/wangzihaogithub
dubboMetadataConfigServiceProxy.removeProxy(serviceName);
repository.removeMetadataAndInitializedService(serviceName);
dubboGenericServiceFactory.destroy(serviceName);
repository.initializeMetadata(serviceName);
if (CollectionUtils.isEmpty(serviceInstances)) {
if (logger.isWarnEnabled()) {
logger.warn(

Loading…
Cancel
Save