Skip to content

DEFAULT_SERVER_SHUTDOWN_TIMEOUT,This number is too big #2877

Closed

Description

@LiZhenNet
  • 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:

Activity

  1. carryxyh commented on Dec 4, 2018

    @carryxyh
    Member

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

  2. LiZhenNet commented on Dec 4, 2018

    @LiZhenNet
    ContributorAuthor

    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

  3. carryxyh commented on Dec 4, 2018

    @carryxyh
    Member

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

  4. carryxyh commented on Dec 4, 2018

    @carryxyh
    Member

    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.

  5. LiZhenNet commented on Dec 4, 2018

    @LiZhenNet
    ContributorAuthor

    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。

  6. carryxyh commented on Dec 4, 2018

    @carryxyh
    Member

    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?

  7. LiZhenNet commented on Dec 6, 2018

    @LiZhenNet
    ContributorAuthor

    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

  8. beiwei30 commented on Dec 7, 2018

    @beiwei30
    Member

    @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 [email protected] and ask @yuyijq to give more comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions