You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Problems of graceful shutdown in 2.6.3 and some recommendations #2525
changed the title [-] Problems of graceful shutdown of dubbo in 2.6.3 and some recommendations[/-][+] Problems of graceful shutdown in 2.6.3 and some recommendations[/+]on Sep 19, 2018
关于第三个问题,在2.6.1中ProtocolConfig类中,destroyAll方法包含如下sleep代码。2.6.2中将此部分sleep代码删除了。
see HeaderExchangeServer#isRunning:
private boolean isRunning() {
Collection<Channel> channels = getChannels();
for (Channel channel : channels) {
if (DefaultFuture.hasFuture(channel)) {
/**
* If there are any client connections,
* our server should be running.
*/
if (channel.isConnected()) {
return true;
}
}
If there is a client connection, it will automatically wait, there was a bug before, so will invoke sleep
Activity
[-] Problems of graceful shutdown of dubbo in 2.6.3 and some recommendations[/-][+] Problems of graceful shutdown in 2.6.3 and some recommendations[/+]zonghaishang commentedon Sep 20, 2018
强绑定了spring容器,不可取,这在dubbo-config-api模块不依赖spring。
zonghaishang commentedon Sep 20, 2018
duplicate of #2435
zonghaishang commentedon Sep 20, 2018
I have already commented: #2435
zonghaishang commentedon Sep 20, 2018
Thanks for providing valuable suggestions. Do you have any actual scenario problems with 2.6.3?
rangtao commentedon Sep 20, 2018
如上描述场景一(Springboot+innerTomcat),spring先于停机流程结束,影响在途调用。
rangtao commentedon Sep 20, 2018
--sry,没理解您的答复,看注释的意思是等待注册中心通知延迟。
关于第三个问题,在2.6.1中ProtocolConfig类中,destroyAll方法包含如下sleep代码。2.6.2中将此部分sleep代码删除了。
see HeaderExchangeServer#isRunning:
If there is a client connection, it will automatically wait, there was a bug before, so will invoke sleep
zonghaishang commentedon Sep 20, 2018
针对场景1能提供复现的demo吗?你自己建立一个github工程,把demo代码放进去。
针对场景3,原来因为关闭server的时候没有正确判断是否还有client持有连接,所以要sleep, 现在这个Bug解决了,不需要主动sleep了
zonghaishang commentedon Sep 20, 2018
如上描述场景一(Springboot+innerTomcat),spring先于停机流程结束,影响在途调用。这个场景使用哪个版本的dubbo?beiwei30 commentedon Oct 31, 2018
I will look into this further in this week.
beiwei30 commentedon Nov 1, 2018
@rangtao I made a quick prototype based on @ralf0131's work. Would you mind take a look and give me your feedback?
pls. check this: #2725
beiwei30 commentedon Nov 5, 2018
enhanced with pull requests: #2734, #2725