-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
- I have checked the FAQ of this repository and believe that this is not a duplicate.
Environment
- Dubbo version: 2.7.8
- Operating System version: ubuntu 18.04
- Java version: open jdk 1.8.0_222
Steps to reproduce this issue
- write two providers in different groups
<dubbo:reference
id="dealMenuFileProvider"
interface="com.jiurong.mfront.workflow.checker.file.FileProvider"
protocol="hessian"
group="g1"
lazy="false"
check="false"/>
<dubbo:reference
id="newDealMnoteFileProvider"
interface="com.jiurong.mfront.workflow.checker.file.FileProvider"
protocol="hessian"
group="g2"
lazy="false"
check="false"/>
- write two consumers in different groups
<dubbo:service
interface="com.jiurong.mfront.workflow.checker.file.FileProvider"
ref="dealMenuFileProvider"
protocol="hessian"
group="g1"
/>
<dubbo:service
interface="com.jiurong.mfront.workflow.checker.file.FileProvider"
ref="newDealMnoteFileProvider"
protocol="hessian"
group="g2"
/>
- invoke each consumer to see which implemention is invoked
@Autowired(required = false)
public void setFileProviders(List<FileProvider> providers) {
for (FileProvider fileProvider : providers) {
System.out.println(fileProvider.getType());
}
this.providers = providers;
}
- When I use hessian or rmi protocol, the provider being invoked is always the first one, group="g1". But when I use dubbo protocol, each group is invoked one by one.
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
What do you expected from the above steps?
Consomer of g2 group should invoke provider of g2 group.
Actual Result
What actually happens?
All the consomers always invoke the first provider, the g1 provider.
Possible explanation
org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol class used the group parameter inside, but org.apache.dubbo.rpc.protocol.hessian.HessianProtocol did not. Is service-group only supported by dubbo protocol?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels