Skip to content

Fix: Same address cannot distinguish different registry center#2784

Merged
AlexStocks merged 3 commits intoapache:developfrom
1kasa:develop
Mar 1, 2025
Merged

Fix: Same address cannot distinguish different registry center#2784
AlexStocks merged 3 commits intoapache:developfrom
1kasa:develop

Conversation

@1kasa
Copy link
Contributor

@1kasa 1kasa commented Feb 28, 2025

dubbo:
  application:
    name: myApp # metadata: application=myApp; name=myApp
    module: opensource # metadata: module=opensource
    group: myAppGroup # 没有元数据记录
    organization: dubbo # metadata: organization=dubbo
    owner: laurence # metadata: owner=laurence
    version: myversion # metadata: app.version=myversion
    environment: pro # metadata: environment=pro
  registries:
    nacosWithCustomGroup:
      protocol: nacos
      address: 127.0.0.1:8848
      group: myGroup # nacos 分组,默认为 DEFAULT_GROUP
      registry-type: interface
      namespace: 779a0faf-90e1-4d9a-8186-8240446b4ccd # nacos namespaceID,需提前创建,默认为 public
    nacosWithCustomGroup2:
      protocol: nacos
      address: 127.0.0.1:8848
      group: myGroup # nacos 分组,默认为 DEFAULT_GROUP
      registry-type: interface
      namespace: 0e80a7a6-ecd1-4801-beb3-011232bce8cf # nacos namespaceID,需提前创建,默认为 public
  protocols:
    dubbo:
      name: dubbo
      port: 20000
  provider:
    services:
      UserProvider:
        registry-ids: nacosWithCustomGroup
        interface: org.apache.dubbo.UserProvider.Test
      UserProviderWithCustomGroupAndVersion:
        registry-ids: nacosWithCustomGroup2
        interface: org.apache.dubbo.UserProvider.Test
        version: myInterfaceVersion # dubbo 接口版本必须与客户端一致
        group: myInterfaceGroup # dubbo 接口组必须与客户端一致

  • Result:
image image

@1kasa 1kasa marked this pull request as draft February 28, 2025 12:15
@1kasa 1kasa marked this pull request as ready for review February 28, 2025 12:23
@1kasa 1kasa closed this Feb 28, 2025
@1kasa 1kasa reopened this Feb 28, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 1, 2025

@No-SilverBullet
Copy link
Member

LGTM

@AlexStocks AlexStocks merged commit 761f0e0 into apache:develop Mar 1, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants