-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
make mapping key unique by add group and version to it #14201
base: 3.2
Are you sure you want to change the base?
Conversation
069c520
to
187c4da
Compare
Hi, woule you like to leave a e-mail here, we would like to invite you to become an Apache Dubbo Committer. |
I understand the issue in you case in #14200, but I don't think we can change the mapping key directly by adding group and version to it. This is by design (only include service interfice) and change the key would bring breaking change to applications using older versions. |
Was Consumer C consuming services of all versions and groups with |
Quality Gate passedIssues Measures |
|
Consumer C only consume service A by |
the issue might be alleviated if we catch the |
To be compatible with old applications using old version, adding group names for each interface to the metadata of the instance and filtering out mismatched service instances from ServiceDiscoveryRegistry#subscribeURLs is another alternative solution, but it violates the design intention of the application level registration pattern to reduce metadata information. |
If Consumer C consumes only
then Consumer C would only call either A or B, depending on which one matches |
The process of creating dubboReference of serivce A:
|
For each service instance that consumer C has not network access privileges, the method AbstractServiceDiscovery#getRemoteMetadata always try calling getRemoteMetadata 3 times and wait 1 second from each time. |
I see the problem in your case here. |
What is the purpose of the change
fixed #14200
Brief changelog
add group and version to mapping key
Verifying this change
Checklist