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

dubbo-go的服务,在dubbo-admin中无法发现方法 #1262 #2588

Open
ssfyn opened this issue Jan 25, 2024 · 8 comments
Open

dubbo-go的服务,在dubbo-admin中无法发现方法 #1262 #2588

ssfyn opened this issue Jan 25, 2024 · 8 comments

Comments

@ssfyn
Copy link

ssfyn commented Jan 25, 2024

Environment

  • dubbo admin version:0.6.0
  • dubbo go version: 3.3.1 (triple, grpc)
  • register center: zookeeper

go config

rootConfigBuilder := config.NewRootConfigBuilder()
cb := rootConfigBuilder.
	SetApplication(config.NewApplicationConfigBuilder().
		SetName(dubboName).
		Build(),
	).
	AddRegistry("zk", config.NewRegistryConfigBuilder().
		SetProtocol("zookeeper").
		SetTimeout("3s").
		SetRegistryType("interface").
		SetAddress(zkAddress).
		Build(),
	).
	SetMetadataReport(config.NewMetadataReportConfigBuilder().
		SetProtocol("zk").
		SetAddress(zkAddress).
		SetTimeout("3s").
		Build(),
	).
	AddProtocol("triple", config.NewProtocolConfigBuilder().
		SetName("tri").
		SetPort(dubboPort).
		Build(),
	)
//.....register triple(grpc) service....
cb.Build().Init()

screenshot-20240124-190519

apache/dubbo-admin#1262

@DMwangnima
Copy link
Contributor

Can you check the metadata information in Zookeeper?

@ssfyn
Copy link
Author

ssfyn commented Feb 4, 2024

Can you check the metadata information in Zookeeper?

ListenServiceNodeEvent->listenSelf(zk path{/services/dubbo-go-demo/192.168.128.161:20000}) goroutine exit now

@FoghostCn
Copy link
Contributor

dubbo go version: 3.3.1 ??

@ssfyn
Copy link
Author

ssfyn commented Apr 11, 2024

dubbo go version: 3.3.1 ??

sorry, is v3.1.1-rc1

@FoghostCn
Copy link
Contributor

FoghostCn commented Apr 12, 2024

you should set metadata type to remote,otherwise it will not publish metadata to metadata center

rootConfigBuilder := config.NewRootConfigBuilder()
cb := rootConfigBuilder.
  SetApplication(config.NewApplicationConfigBuilder().
	  SetName("dubb").
	  SetMetadataType("remote"). // this line
	  Build(),
  )

@ssfyn
Copy link
Author

ssfyn commented Apr 15, 2024

you should set metadata type to remote,otherwise it will not publish metadata to metadata center

rootConfigBuilder := config.NewRootConfigBuilder()
cb := rootConfigBuilder.
  SetApplication(config.NewApplicationConfigBuilder().
	  SetName("dubb").
	  SetMetadataType("remote"). // this line
	  Build(),
  )

看代码MetadataType的remote,好像只有service_discovery时才被使用到,service_discovery好像在应用级服务发现中才生效,是这样么?

@FoghostCn
Copy link
Contributor

FoghostCn commented Apr 15, 2024

you should set metadata type to remote,otherwise it will not publish metadata to metadata center

rootConfigBuilder := config.NewRootConfigBuilder()
cb := rootConfigBuilder.
  SetApplication(config.NewApplicationConfigBuilder().
	  SetName("dubb").
	  SetMetadataType("remote"). // this line
	  Build(),
  )

看代码MetadataType的remote,好像只有service_discovery时才被使用到,service_discovery好像在应用级服务发现中才生效,是这样么?

The v3.1.1-rc1 version of metadata is also used in dubbo-admin. Part of it is used for application-level service discovery, and part of it is used by admin.

@willcfyang
Copy link

我这里zk里面注册了metadata,但是dubbo-admin依然无法识别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants