AsperforMias opened a new issue, #3804: URL: https://github.com/apache/dubbo-go/issues/3804
### 现象 dubbo-go 的 provider 注册到 Nacos 或 ZooKeeper 后,在 Dubbo Admin 的实例列表里,注册状态显示为 `UnRegistered`,`registerTime` 为空。服务本身可以正常调用。 ### 原因 Admin 的 `ToRPCInstance`(`pkg/core/resource/apis/mesh/v1alpha1/rpc_instance_helper.go`)从实例元数据的 `timestamp` 读取注册时间,再据此算出 `registerState`。而 dubbo-go 写到 Nacos 和 ZK 的实例元数据里没有 `timestamp`。 ### 复现 1. 用 develop(6b04ac04)启动任意一个 provider,注册到 Nacos。 2. 请求 Admin 的 `GET /api/v1/instance/search?keywords=&mesh=<nacos mesh>`,该实例的 `registerState` 为 `UnRegistered`,`registerTime` 为空。 ### 修复方向 在实例元数据里写入 `timestamp`。Admin 用 `time.UnixMilli` 解析这个值,所以应该写毫秒。我这边已经有修复,方向确认后提 PR。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
