Alanxtl commented on issue #3804:
URL: https://github.com/apache/dubbo-go/issues/3804#issuecomment-6812231153

   > [@Alanxtl](https://github.com/Alanxtl) 关于 `timestamp` 的单位,这里需要用毫秒。
   > 
   > 之前为了不影响存量用户,dubbo-go 没有把时间戳整体改成毫秒。这次只涉及实例元数据里的 `timestamp` 这一个字段:
   > 
   > * Admin 在 `rpc_instance_helper.go` 里按 `time.UnixMilli` 解析,Java Dubbo 
写入的也是毫秒。这是 Admin 和 Java 侧已经定下的格式,dubbo-go 没法单方面改。
   > * 如果写秒,实例虽然会显示 Registered,但注册时间会显示成 1970 年。Java 和 Go 实例混合部署时,按时间排序和比较也会出错。
   > * dubbo-go 目前根本不写这个字段,这正是本 issue 的问题。所以改用毫秒不会改变任何已有字段的值,也不影响存量用户。
   > 
   > 建议修复直接写毫秒,你看可以吗?
   
   @AlexStocks check this


-- 
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]

Reply via email to