[ 
https://issues.apache.org/jira/browse/SENTRY-513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dapeng Sun updated SENTRY-513:
------------------------------
    Description: 
{code}
 public synchronized void stop() throws Exception{
    if (status == Status.NOT_STARTED) {
      return;
    }
    LOGGER.info("Attempting to stop...");

    if (thriftServer.isServing()) {
      thriftServer.stop();
    }
    thriftServer = null;
    stopSentryWebServer();
    status = Status.NOT_STARTED;
    LOGGER.info("Stopped...");
  }
{code} 

if {{thriftServer}} got an exception, the method {{stopSentryWebServer()}} will 
be passed

> Sentry web service may not be stoped completely
> -----------------------------------------------
>
>                 Key: SENTRY-513
>                 URL: https://issues.apache.org/jira/browse/SENTRY-513
>             Project: Sentry
>          Issue Type: Bug
>            Reporter: Dapeng Sun
>
> {code}
>  public synchronized void stop() throws Exception{
>     if (status == Status.NOT_STARTED) {
>       return;
>     }
>     LOGGER.info("Attempting to stop...");
>     if (thriftServer.isServing()) {
>       thriftServer.stop();
>     }
>     thriftServer = null;
>     stopSentryWebServer();
>     status = Status.NOT_STARTED;
>     LOGGER.info("Stopped...");
>   }
> {code} 
> if {{thriftServer}} got an exception, the method {{stopSentryWebServer()}} 
> will be passed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to