haiyang1985 opened a new issue #2583: ApplicationModel serviceName is not unique
URL: https://github.com/apache/incubator-dubbo/issues/2583
 
 
   - [ ] I have searched the 
[issues](https://github.com/apache/incubator-dubbo/issues) of this repository 
and believe that this is not a duplicate.
   - [ ] I have checked the 
[FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this 
repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: all
   * Operating System version: all
   * Java version: all
   
   ### Steps to reproduce this issue
   1. create two ReferenceConfig for same service with different configuration.
   <dubbo:reference id="demoService" interface="com.alibaba.dubbo.DemoService">
   </dubbo:reference>
   <dubbo:reference id="demoServiceAsync" 
interface="com.alibaba.dubbo.DemoService" async="true">
   </dubbo:reference>
   2. startup the consumer application.
   3. get the ConsumerModel from ApplicationModel.
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   ApplicationModel.allConsumerModels() should returns two ConsumerModel.
   
   ### Actual Result
   ApplicationModel.allConsumerModels() only returns the first ConsumerModel.
   
   If there is an exception, please attach the exception trace:
   
   With future investigation, ReferenceConfig cannot put the second 
ConsumerModel as they are in same serviceName.
   
   Also, this is the same issue for provider with below configuration.
   <bean id="demoService" class="com.alibaba.dubbo.DemoServiceImpl"/>
   <dubbo:service interface="com.alibaba.dubbo.DemoService" ref="demoService">
   </dubbo:service>
   <bean id="demoService2" class="com.alibaba.dubbo.DemoServiceImpl2"/>
   <dubbo:service interface="com.alibaba.dubbo.DemoService" ref="demoService2">
   </dubbo:service>
   
   Here is my PR: https://github.com/apache/incubator-dubbo/pull/2582

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to