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

Sentry web service may not be stopped completely

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: