You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "QuentinYo (via GitHub)" <gi...@apache.org> on 2023/04/04 04:02:43 UTC

[GitHub] [dubbo] QuentinYo opened a new issue, #11990: 优雅停机:无法保证Dubbo 的 ShutdownHook 会在 SpringBoot 的 ShutdownHook 之前执行,导致spring bean先于dubbo销毁

QuentinYo opened a new issue, #11990:
URL: https://github.com/apache/dubbo/issues/11990

   ![image](https://user-images.githubusercontent.com/7312478/229679742-6c9a0da0-8999-4e0e-b813-628fddc3d36f.png)
   上图:spring启动的时候注册了DubboShutdownHook到Jvm的Shutdown hook
   
   ![image](https://user-images.githubusercontent.com/7312478/229680063-ed64e2a5-5422-426f-8d8f-6e1ba081c513.png)
   上图:spring的关闭事件也会处理dubbo的停机逻辑
   
   由于dubbo的停机逻辑只会执行一遍,DubboShutdownHook执行过后,spring关闭事件所在的线程就不会再执行,也不会被阻塞,直接跳过,执行后续的bean销毁动作。如下:
   ![image](https://user-images.githubusercontent.com/7312478/229682915-39798b22-45b9-405f-927c-57f509260ffa.png)
   
   这应该会导致spring bean先于dubbo销毁吧
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #11990: 优雅停机:无法保证Dubbo 的 ShutdownHook 会在 SpringBoot 的 ShutdownHook 之前执行,导致spring bean先于dubbo销毁

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #11990:
URL: https://github.com/apache/dubbo/issues/11990#issuecomment-1495666537

   最新的 Dubbo 3.2 版本已经做了 Spring 状态的对齐


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] QuentinYo closed issue #11990: 优雅停机:无法保证Dubbo 的 ShutdownHook 会在 SpringBoot 的 ShutdownHook 之前执行,导致spring bean先于dubbo销毁

Posted by "QuentinYo (via GitHub)" <gi...@apache.org>.
QuentinYo closed issue #11990: 优雅停机:无法保证Dubbo 的 ShutdownHook 会在 SpringBoot 的 ShutdownHook 之前执行,导致spring bean先于dubbo销毁
URL: https://github.com/apache/dubbo/issues/11990


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org