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

配置中心设置的 namespace 不生效 #1573

Closed
wwek opened this issue Nov 8, 2021 · 1 comment
Closed

配置中心设置的 namespace 不生效 #1573

wwek opened this issue Nov 8, 2021 · 1 comment
Assignees
Labels
bug Something isn't working occupied Issue has been occupied

Comments

@wwek
Copy link

wwek commented Nov 8, 2021

What happened:
1、config-center 配置的 namespace: dev
image

dubbo:
  config-center:
    protocol: nacos
    address: 127.0.0.1:8848
    group: dubbo
    namespace: dev
    data-id: "dubbogo-qznotify.yaml"
    timeout: 10s
    params:
      username: nacos
      password: nacos

2、 问题 nacos中取是namespace: public,namespace: dev 未生效
image

3、环境和版本
dubbo.apache.org/dubbo-go/v3 v3.0.0-rc3

func main() {
	Version()
	config.SetProviderService(&GreeterProvider{})
	if err := config.Load(); err != nil {
		panic(err)
	}
	logger.Infof("Config Center : %s\n", config.GetRootConfig().ConfigCenter.Namespace)
	select {}
}

What you expected to happen:
应该取设置的namespace: dev 中的

@wwek wwek changed the title 配置中心设置的 namespace为什么不生效? 配置中心设置的 namespace 不生效 Nov 8, 2021
@LaurenceLiZhixin LaurenceLiZhixin added the bug Something isn't working label Nov 8, 2021
@LaurenceLiZhixin LaurenceLiZhixin self-assigned this Nov 8, 2021
@LaurenceLiZhixin LaurenceLiZhixin added the occupied Issue has been occupied label Nov 8, 2021
Mulavar pushed a commit to Mulavar/dubbo-go that referenced this issue Nov 8, 2021
Mulavar pushed a commit to Mulavar/dubbo-go that referenced this issue Nov 9, 2021
@LaurenceLiZhixin
Copy link
Contributor

LaurenceLiZhixin commented Nov 10, 2021

@wwek

  1. 3.0分支问题已经修复,请拉取最新代码。或使用哈希
    dubbo.apache.org/dubbo-go/v3 0c85c55

  2. 配置时配置的
    namespace: dev # dev 是错误的,应该配置的值是 namespaceID,如9fb00abb-278d-42fc-96bf-e0151601e4a1 ,需要提前在 nacos 界面创建好。

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

2 participants