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

[Bug] registries 多个相同配置被过滤掉,导致丢失了key #13925

Closed
4 tasks done
super-newbie94 opened this issue Mar 15, 2024 · 1 comment
Closed
4 tasks done
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@super-newbie94
Copy link

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo Java 3.2.10 , OpenJDK17

Steps to reproduce this issue

我使用registries进行配置多个注册中心,其实在开发和测试环境这多个注册中心的配置相同(注册zk地址相同)。代码中RegistryConfig.equles 会比较所有属性。会去掉。这样注册中心就找不到了,我理解是想相同配置用同一个注册中心配置但是我们在生产环境使用时可能又不同,这样失去了灵活性。
而且RegistryConfig.equles 居然还过滤了id属性,让我无法避免这个问题。我只能使用 parameters来区分。

  registries:
    account-employee-registry:
      address: zookeeper://${DUBBO_REGISTRY_AMS_ADDRESS:10.111.15.315:291381}
      parameters:
        a: 1
    ai-common-registry:
      address: zookeeper://${DUBBO_REGISTRY_AI_COMMON_ADDRESS:10.111.15.315:291381}
      check: false
      parameters:
        a: 2
    mdm-registry:
      address: zookeeper://${DUBBO_MDM_REGISTRY:10.111.15.315:291381}
      parameters:
        a: 3
    rms-registry:
      address: zookeeper://${DUBBO_RMS_REGISTRY:10.111.15.315:291381}
      parameters:
        a: 4
image

What you expected to happen

注册中心的去重复按照configsCache的key来进行比较唯一性。或者允许id参与RegistryConfig中equles的比较

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@super-newbie94 super-newbie94 added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Mar 15, 2024
@super-newbie94 super-newbie94 changed the title [Bug] [Bug] registries 多个相同配置被过滤掉,导致丢失了key Mar 15, 2024
@AlbumenJ
Copy link
Member

Please re-submit the issue in English.

@apache apache locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Archived in project
Development

No branches or pull requests

2 participants