You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "nuoqin (via GitHub)" <gi...@apache.org> on 2024/06/03 02:05:59 UTC
[I] [Bug] About dubbo broadcast 2.6.X 2.7.X 3.X issue [dubbo]
nuoqin opened a new issue, #14270:
URL: https://github.com/apache/dubbo/issues/14270
### Pre-check
- [X] I am sure that all the content I provide is in English.
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.
### Apache Dubbo Component
Java SDK (apache/dubbo)
### Dubbo Version
2.7.X 3.X
### Steps to reproduce this issue
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
### What you expected to happen
A version upgrade makes the service unavailable
### Anything else
_No response_
### Are you willing to submit a pull request to fix on your own?
- [X] Yes I am willing to submit a pull request on my own!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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-unsubscribe@dubbo.apache.org.apache.org
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
Re: [I] [Bug] About dubbo broadcast 2.6.X 2.7.X 3.X issue [dubbo]
Posted by "nuoqin (via GitHub)" <gi...@apache.org>.
nuoqin commented on issue #14270:
URL: https://github.com/apache/dubbo/issues/14270#issuecomment-2146481902
Close the issue and resubmit it to the address below. I'm sorry
[https://github.com/apache/dubbo/issues/14280](url)
--
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-unsubscribe@dubbo.apache.org
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
Re: [I] [Bug] About dubbo broadcast 2.6.X 2.7.X 3.X issue [dubbo]
Posted by "nuoqin (via GitHub)" <gi...@apache.org>.
nuoqin closed issue #14270: [Bug] About dubbo broadcast 2.6.X 2.7.X 3.X issue
URL: https://github.com/apache/dubbo/issues/14270
--
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-unsubscribe@dubbo.apache.org
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