AlbumenJ commented on issue #14266: URL: https://github.com/apache/dubbo/issues/14266#issuecomment-2144147845
> When our system is upgraded from alibaba dubbo 2.6.X to 2.7.X/3.X, when we use ReferenceConfig and find registryConfig.setCluster(ClusterRules.BROADCAST), we find that broadcast is supported in version 2.6.X to services on other servers. However, when upgrading to 2.7.X/3.X, the service cannot broadcast. > > 2.6.X code is as follows > > ``` > ReferenceConfig<CacheService> reference = new ReferenceConfig<>(); > RegistryConfig registryConfig = new RegistryConfig("zookeeper地址"); > **registryConfig.setCluster(ClusterRules.BROADCAST);** > reference.setRegistry(registryConfig); > //设置ApplicationConfig > reference.setApplication(application); > reference.setInterface(CacheSyncService.class); > > CacheService service = reference.get(); > > service.update(); > ``` > > 2.7.X/3.X code is as follows > > ``` > ReferenceConfig<CacheService> reference = new ReferenceConfig<>(); > RegistryConfig registryConfig = new RegistryConfig("zookeeper地址"); > reference.setRegistry(registryConfig); > //设置ApplicationConfig > reference.setApplication(application); > reference.setInterface(CacheSyncService.class); > **reference.setCluster(ClusterRules.BROADCAST);** > > CacheService service = reference.get(); > > service.update(); > ``` > > But in the official documentation, there is no hint,I wonder if users should be informed of this change,Thanks Please re-submit a new one -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org