Skip to content
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

服务级注册到nacos时指定namespace没有效果 #1544

Closed
qtsj1997 opened this issue Oct 28, 2021 · 4 comments
Closed

服务级注册到nacos时指定namespace没有效果 #1544

qtsj1997 opened this issue Oct 28, 2021 · 4 comments
Assignees
Labels
bug Something isn't working occupied Issue has been occupied
Milestone

Comments

@qtsj1997
Copy link

配置内容

dubbo:
  registries:
    demoZK:
      protocol: nacos
      address: 127.0.0.1:8848
      registry-type: service
      username: nacos
      password: nacos
      timeout: 20s
      namespace: test
      group: test
  metadata-report:
    protocol: nacos
    address: 127.0.0.1:8848
  protocols:
    triple:
      name: tri
      port: 20000
    dubbo:
      name: dubbo
      port: 20001
    params:
      username: nacos
      password: nacos
  provider:
    registryIDs:
      - demoZK
    services:
      GreeterProvider:
        protocolIDs: triple
        interface: com.apache.dubbo.sample.basic.IGreeter

注册结果

image

想要注册到设定的test名称空间,但是指定的namespace和group都没有效果

版本
dubbo.apache.org/dubbo-go/v3 v3.0.0-rc2.0.20211026020634-a45fd29e8a6d

@zhaoyunxing92 zhaoyunxing92 added the bug Something isn't working label Oct 28, 2021
@zhaoyunxing92 zhaoyunxing92 added this to the v3.0.0 milestone Oct 28, 2021
@qtsj1997
Copy link
Author

期望结果能够注册到test的名称空间下,但是实际注册到了public,在demoZk下指定的namespace没有用

@binbin0325
Copy link
Member

I can try to fix it

@justxuewei
Copy link
Member

I can try to fix it

PRs are always welcomed, please mention this issue in your PR, thanks.

@LaurenceLiZhixin
Copy link
Contributor

LaurenceLiZhixin commented Nov 10, 2021

@qtsj1997 Fixed, refer to: #1573 (comment)

registries:
    demoZK:
      protocol: nacos
      address: 127.0.0.1:8848
      registry-type: service
      username: nacos
      password: nacos
      timeout: 20s
      namespace:  9fb00abb-278d-42fc-96bf-e0151601e4a1 # your namespaceID generated from nacos UI

或参考samples:https://github.com/apache/dubbo-go-samples/blob/master/registry/nacos/go-client/conf/dubbogo.yml#L7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working occupied Issue has been occupied
Projects
None yet
Development

No branches or pull requests

5 participants