Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-548

Support Gracefully Shutdown

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • java-chassis-1.0.0-m2
    • java-chassis-1.0.0-m2
    • Java-Chassis
    • None

    Description

      We did not implement gracefully shutdown yet:
      ```java
      // 当程序退出时,进行相关清理,注意:kill -9

      {pid}

      下无效
      // 1. 去注册实例信息
      // TODO 服务优雅退出
      if (applicationContext instanceof AbstractApplicationContext)

      { ((AbstractApplicationContext) applicationContext).registerShutdownHook(); }

      ```

      And had got an issue : https://github.com/apache/incubator-servicecomb-java-chassis/issues/685 from user.
      So it's time we must do it and remove this TODO

      Attachments

        Issue Links

          Activity

            People

              zhengyangyong Yangyong Zheng
              zhengyangyong Yangyong Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: