Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-513

Sentry web service may not be stopped completely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • None
    • None

    Description

       public synchronized void stop() throws Exception{
          if (status == Status.NOT_STARTED) {
            return;
          }
          LOGGER.info("Attempting to stop...");
      
          if (thriftServer.isServing()) {
            thriftServer.stop(); // XXX If got exception here, the code after it will never be executed. 
          }
          thriftServer = null;
          stopSentryWebServer();
          status = Status.NOT_STARTED;
          LOGGER.info("Stopped...");
        }
      

      if thriftServer got an exception when do stop, the method stopSentryWebServer() will be passed

      Attachments

        1. SENTRY-513.patch
          3 kB
          Dapeng Sun
        2. SENTRY-513.003.patch
          3 kB
          Dapeng Sun
        3. SENTRY-513.002.patch
          3 kB
          Dapeng Sun

        Issue Links

          Activity

            People

              dapengsun Dapeng Sun
              dapengsun Dapeng Sun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: