Alexey Serbin created SENTRY-2519:
-------------------------------------

             Summary: NullPointerException on shutdown when store-cleaner is 
disabled
                 Key: SENTRY-2519
                 URL: https://issues.apache.org/jira/browse/SENTRY-2519
             Project: Sentry
          Issue Type: Bug
            Reporter: Alexey Serbin


When running Sentry without the {{store-cleaner}} thread, null pointer 
precondition check triggers upon service shutdown:

{noformat}
23:11:29.828 [SENTRY - ERROR - service-shutdown] (SentryService.java:576) Error 
stopping SentryService
java.lang.NullPointerException                                                  
  at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)  
  at 
org.apache.sentry.service.thrift.SentryService.stopSentryStoreCleaner(SentryService.java:398)
  at org.apache.sentry.service.thrift.SentryService.stop(SentryService.java:477)
  at 
org.apache.sentry.service.thrift.SentryService$CommandImpl$1.run(SentryService.java:574)
  at java.lang.Thread.run(Thread.java:748)
{noformat}

To run Sentry without the store-cleaner thread, set the corresponding property 
to negative value:
{noformat}
  <property>
    <name>sentry.store.clean.period.seconds</name>
    <value>-1</value>
  </property>
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to