liubao68 commented on issue #4475:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4475#issuecomment-2317532928

   从设计上来讲,你描述的场景不应该调用 RegistryUtils#destroy, 我理解应该是可以考虑将服务的状态由 UP 改为 Down。 
销毁注册组件,自然无法保证客户端调用总是成功。 
   
   你描述的场景使用
   
   ```
    
RegistrationManager.INSTANCE.updateMicroserviceInstanceStatus(MicroserviceInstanceStatus.DOWN)
   ```
   应该是更加合适的。 


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

Reply via email to