You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/23 08:14:09 UTC

[GitHub] [dubbo] yuxiao97 opened a new issue #8892: 关于Dubbo2.7.7和SpringBoot2.1.1优雅停机的问题

yuxiao97 opened a new issue #8892:
URL: https://github.com/apache/dubbo/issues/8892


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.7.7
   * SpringBoot version: 2.1.1.RELEASE
   * Operating System version: Linux
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   发现Dubbo的优雅停机和Spring的优雅停机并没有先后顺序,都是注册到Runtime的shutdownHook中的,这样Dubbo还能真正的优雅停机嘛?如何做到真正的优雅停机?
   Dubbo注册关闭勾子的源码如下,位于DubboBootstrap中
   ```
   private DubboBootstrap() {
           configManager = ApplicationModel.getConfigManager();
           environment = ApplicationModel.getEnvironment();
   
           DubboShutdownHook.getDubboShutdownHook().register();
           ShutdownHookCallbacks.INSTANCE.addCallback(new ShutdownHookCallback() {
               @Override
               public void callback() throws Throwable {
                   DubboBootstrap.this.destroy();
               }
           });
       }
   ```
   此处并没有和Spring的ApplicationContextEvent事件关联,所以Dubbo配合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] haoyann commented on issue #8892: 关于Dubbo2.7.7和SpringBoot2.1.1优雅停机的问题

Posted by GitBox <gi...@apache.org>.
haoyann commented on issue #8892:
URL: https://github.com/apache/dubbo/issues/8892#issuecomment-927858278


   可以试一下 2.7.14 版本。


-- 
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] yuxiao97 closed issue #8892: 关于Dubbo2.7.7和SpringBoot2.1.1优雅停机的问题

Posted by GitBox <gi...@apache.org>.
yuxiao97 closed issue #8892:
URL: https://github.com/apache/dubbo/issues/8892


   


-- 
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] CrazyHZM commented on issue #8892: 关于Dubbo2.7.7和SpringBoot2.1.1优雅停机的问题

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #8892:
URL: https://github.com/apache/dubbo/issues/8892#issuecomment-1000660348


   No feedback for a long time, please close the issue temporarily. If there is still a problem, you can reopen it.


-- 
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] haoyann commented on issue #8892: 关于Dubbo2.7.7和SpringBoot2.1.1优雅停机的问题

Posted by GitBox <gi...@apache.org>.
haoyann commented on issue #8892:
URL: https://github.com/apache/dubbo/issues/8892#issuecomment-927445101


   可以看看 #7317,有解决这个问题吗。


-- 
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] CrazyHZM closed issue #8892: 关于Dubbo2.7.7和SpringBoot2.1.1优雅停机的问题

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #8892:
URL: https://github.com/apache/dubbo/issues/8892


   


-- 
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] yuxiao97 commented on issue #8892: 关于Dubbo2.7.7和SpringBoot2.1.1优雅停机的问题

Posted by GitBox <gi...@apache.org>.
yuxiao97 commented on issue #8892:
URL: https://github.com/apache/dubbo/issues/8892#issuecomment-927482814


   > 可以看看 #7317,有解决这个问题吗。
   
   是同一类问题,请问在哪个发布版本解决的?我这边好查看下。


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