Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEFAULT_SERVER_SHUTDOWN_TIMEOUT,This number is too big #2877

Closed
2 tasks done
LiZhenNet opened this issue Dec 4, 2018 · 8 comments
Closed
2 tasks done

DEFAULT_SERVER_SHUTDOWN_TIMEOUT,This number is too big #2877

LiZhenNet opened this issue Dec 4, 2018 · 8 comments

Comments

@LiZhenNet
Copy link
Contributor

LiZhenNet commented Dec 4, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.6.2
  • Operating System version: mac os
  • Java version: 1.8

Steps to reproduce this issue

com.alibaba.dubbo.common.Constants#DEFAULT_SERVER_SHUTDOWN_TIMEOUT,
I think this number is too big,2~3 second is enough。

Expected Result

make a small default value 。

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

@carryxyh
Copy link
Member

carryxyh commented Dec 4, 2018

Can u give some reason?
10 seconds is an insurance time. If you think 10s is too big, please adjust dubbo.service.shutdown.wait

@LiZhenNet
Copy link
Contributor Author

Can u give some reason?
10 seconds is an insurance time. If you think 10s is too big, please adjust dubbo.service.shutdown.wait

I know it can change value by change the dubbo.service.shutdown.wait, But, 10 second is not a appropriate value.

In 2.5.x , it will sleep 10 second between Registry destroy and Protocol

@carryxyh
Copy link
Member

carryxyh commented Dec 4, 2018

Since this sleep occurs when the service goes offline, what problems will it cause when you sleep longer?

@carryxyh
Copy link
Member

carryxyh commented Dec 4, 2018

In my opinion, the difference between 10s or 5s is not very big. I can't decide which is better. Each has its own advantages and disadvantages. 5s is better? maybe.

@LiZhenNet
Copy link
Contributor Author

In my opinion, the difference between 10s or 5s is not very big. I can't decide which is better. Each has its own advantages and disadvantages. 5s is better? maybe.

It will make the application shutdown slow in old version。
This config in 2.6.x ,it's role that make the request which is excuting return success. In general, a request should not execute more than 5 seconds。

@carryxyh
Copy link
Member

carryxyh commented Dec 4, 2018

I agree with what you said. But personally think that the difference between fast closing and slow closing is not very big.
Should we modify it? Maybe. @zonghaishang Can u give some ideas?

@LiZhenNet
Copy link
Contributor Author

I agree with what you said. But personally think that the difference between fast closing and slow closing is not very big.
Should we modify it? Maybe. @zonghaishang Can u give some ideas?

I have pull a request to talk about it #2901

@beiwei30
Copy link
Member

beiwei30 commented Dec 7, 2018

@LiZhenNet I've already merge #2901

For the particular issue against com.alibaba.dubbo.common.Constants#DEFAULT_SERVER_SHUTDOWN_TIMEOUT, it is unnecessary any longer to sleep 10 second between Registry destroy and Protocol. Ps. verify.

If you still have confusion on this, pls. send email to dev@dubbo.apache.org and ask @yuyijq to give more comments.

@beiwei30 beiwei30 closed this as completed Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants