You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "yanghao605 (via GitHub)" <gi...@apache.org> on 2025/03/03 07:20:43 UTC

[I] [BUG] - [3.2.2] 注册中心异常重启后,服务实例虽然重新注册了,但是实例在注册中心的状态会一直处于STARTING [servicecomb-java-chassis]

yanghao605 opened a new issue, #4744:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4744

   ### Steps to Reproduce
   
   1. sdk版本为3.2.0
   2. 当前版本的注册逻辑为在SCBEngine中在registrationManager.run执行完后,将注册中心的服务实例状态改为UP
   3. 但是当注册中心异常重启后,服务重新注册时,并不会再修改注册中心服务实例的状态,从而导致注册中心中,服务实例的状态一直是STARTING
   
   ### Expected Behavior
   
   注册中心异常后,服务实例重新注册能够将状态修改为UP
   
   ### Servicecomb Version
   
   _No response_
   
   ### Additional Context
   
   _No response_


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] - [3.2.2] 注册中心异常重启后,服务实例虽然重新注册了,但是实例在注册中心的状态会一直处于STARTING [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4744:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4744#issuecomment-2693572717

   参考 https://github.com/apache/servicecomb-java-chassis/pull/4670/files  。 最新版本对注册流程进行了调整, 服务注册完成后,框架不主动更新实例状态。 需要业务自己监听 `AFTER_REGISTRY`事件来更新实例状态。 (因为很多的场景,业务需要自己控制更新实例状态的时机)
   
   按照这个新的调整, 貌似能够解决你们的问题,可以试试。 


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] - [3.2.2] 注册中心异常重启后,服务实例虽然重新注册了,但是实例在注册中心的状态会一直处于STARTING [servicecomb-java-chassis]

Posted by "yanghao605 (via GitHub)" <gi...@apache.org>.
yanghao605 commented on issue #4744:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4744#issuecomment-2693526570

   sdk在初始化的时候会把instance的状态改starting,服务注册成功后,sdk会调用注册中心接口更新实例状态为UP,但是其没有更新自身内存中的实例状态,所以等到注册中心异常,再重新注册的时候,实例初始状态还是STARTING,但是这一次注册没有更新实例状态的步骤了


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] - [3.2.2] 注册中心异常重启后,服务实例虽然重新注册了,但是实例在注册中心的状态会一直处于STARTING [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4744:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4744#issuecomment-2693510863

   你是设置了 `initialstatus` 为 `STARTING` 吗?


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org