Super4You opened a new issue #2524: Dubbo优雅关机 URL: https://github.com/apache/incubator-dubbo/issues/2524 ### 关于2.6.3版本优雅关机问题 你好: * 1.经过测试DubboProtocol在关机时在此协议中是独立实现了的https://github.com/apache/incubator-dubbo/issues/2514 中提到org.apache.dubbo.registry.integration.RegistryProtocol.DestroyableExporter 这个类为任何协议使用时可以做到优雅关机。 * 2.在新版本中debug时发现DestroyableExporter的unexport()方法从没被调用到,追溯到上游代码发现在org.apache.dubbo.bootstrap.DubboBootstrap中registerServiceConfig(ServiceConfig)在全局中没任何调用,serviceConfigList始终为初始化状态,从而在DubboBootstrap.stop()进行关机时,应用启动暴露接口返回的DestroyableExporter没有任何代码去调用其unexport()进行关机前的取消注册与订阅操作以及等待用户设置dubbo.service.shutdown.wait时间操作。 ### 以下为DubboBootstrap类截图   * 3.水平有限,不知道是我没找到相应的代码或配置,还是有其他问题,请指教一下,谢谢。 ### Environment * Dubbo version: 2.6.3 * Operating System version: mac ox * Java version: 1.8
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
