codeimport opened a new issue #9546:
URL: https://github.com/apache/dubbo/issues/9546


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.7.15
   * Operating System version: windows 10
   * Java version: 8
   
   ### Steps to reproduce this issue
       Different registries are configured with different weights, but the 
weights are not effective. The reason is that the default load policy can not 
correctly obtain the weights of registries, and can only obtain the weights of 
ordinary providers.
   
        consumer config like that:     
   
       <dubbo:registry id = "main" 
address="zookeeper://${zookeeper.address:127.0.0.1}:2181" weight="1"/>
   
       <dubbo:registry id = "slave" 
address="zookeeper://${zookeeper.address:127.0.0.1}:2182" weight="100"/>
   
       <dubbo:reference id="demoService" check="false" 
interface="com.example.DemoService" registry="main,slave"/>
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### consumer use slave registry center
   
   <!-- What actually happens? -->
   
   consumer use main registry center
   
   ```
   Just put your stack trace here!
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to