dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[ISSUE] Is it right that the program return directly when it is the consumer url?

Open cvictory opened this issue 7 years ago • 3 comments

In https://github.com/apache/dubbo/blob/master/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java#L99~L102, it will be reture directly if it is consumer url.

How do the ops collect consumer info?

@Override
    public void register(URL url) {
        if (isConsumerSide(url)) {
            return;
        }

        super.register(url);
    }

cvictory avatar Aug 02 '19 07:08 cvictory

I think this method can be deleted because other concrete registry class like ZookeeperRegistry doesn't have the method.

tswstarplanet avatar Aug 02 '19 15:08 tswstarplanet

Actually some of concrete registry still has same check: https://github.com/apache/dubbo/blob/956d28b11ecda2b4aa3c76481c95f06fc3833210/dubbo-registry/dubbo-registry-sofa/src/main/java/org/apache/dubbo/registry/sofa/SofaRegistry.java#L200~L204

AnthonyKot avatar Aug 06 '19 10:08 AnthonyKot

I will close the issue at present.

cvictory avatar Sep 04 '19 07:09 cvictory