You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/12/17 13:57:40 UTC

[GitHub] wanghancai commented on issue #512: 服务重新注册成功后更新属性失败

wanghancai commented on issue #512: 服务重新注册成功后更新属性失败
URL: https://github.com/apache/servicecomb-service-center/issues/512#issuecomment-447854559
 
 
   SCB-1059的修改方式不能彻底解决问题:
   1、s.Heartbeat(ctx, &pb.HeartbeatRequest{ServiceId: instance.ServiceId, InstanceId: oldInstanceId}) 只在添加到发送心跳队列中,如果在操作etcd前发生了ttl,则leaseId会失效,导致心跳仍然失败,而且会是异常。从而仍然会导致注册成功,但服务实例不在的情况。
   2、如果实例在exit和heartbeat之间,ttl了并进入defect处理,此时心跳仍然无法恢复,仍然要下线,依就会出现服务重注册成功,但实例仍然不在线的问题。
   建议在注册时,直接查找到leaseID或重新生成leaseID,操作etcd来重置ttl能保证100%重成功。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services