New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.x version, application-level registration, one protocol, multiple ports, only one protocol for one port registered in the registry #10958
Comments
What is the purpose of configuring single-protocol and multi-port, such a configuration has no good benefits for the cluster. |
The multi-port configuration is probably to better support single-machine concurrency, and dubbo2.x supports such a configuration. If 3.x does not support such a configuration, should an error be reported during yml reading? Instead of starting normally and overwriting a port, it creates confusion for users because they don't know which port is valid |
Agree. We can find out these cases early and notify user. |
Therefore, do we need to fix this little bug? |
Yes, if you willing to, please go ahead. |
Environment
Steps to reproduce this issue
At 2.7. In version X, the provider provides a Dubbo service on two ports, 20883,50052, but in 3. X, found in application-level metadata: Dubbo. In the endpoints node, only one port, 50052, is registered, not 20883
After viewing the source code, the
org.apache.dubbo.registry.client.metadata.ProtocolPortsMetadataCustomizer#customize
Method, there is a descriptionThe same protocol will be covered, so that the design will never know the existence of 20883 consumers
Pls. provide [GitHub address] to reproduce this issue.
https://github.com/apache/dubbo/blob/3.1/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/ProtocolPortsMetadataCustomizer.java
Expected Behavior
In three. In application-level registration for version X, you can register both ports 20883 and 50052
Actual Behavior
If there is an exception, please attach the exception trace:
At this point, there is no impact on usage, but the provider has opened an additional port, resulting in waste of resources and confusion of users
The text was updated successfully, but these errors were encountered: