Samarth Jain created TEPHRA-239:
-----------------------------------

             Summary: Null pointer exception in TransactionStateCache
                 Key: TEPHRA-239
                 URL: https://issues.apache.org/jira/browse/TEPHRA-239
             Project: Tephra
          Issue Type: Bug
            Reporter: Samarth Jain
            Assignee: Poorna Chandra


In our Phoenix test runs we have seen the following NPE in 
TransactionStateCache. 

{code}
2017-07-19 18:57:56,136 INFO  [tx-state-refresh] 
org.apache.tephra.coprocessor.TransactionStateCache$1(144): Exiting thread 
tx-state-refresh
2017-07-19 18:57:56,138 ERROR [TransactionStateCache STOPPING] 
org.apache.zookeeper.server.NIOServerCnxnFactory$1(44): Thread 
Thread[TransactionStateCache STOPPING,5,main] died
java.lang.NullPointerException
        at 
org.apache.tephra.coprocessor.TransactionStateCache.shutDown(TransactionStateCache.java:85)
        at 
com.google.common.util.concurrent.AbstractIdleService$1$2.run(AbstractIdleService.java:57)
        at java.lang.Thread.run(Thread.java:745)
2017-07-19 18:57:56,138 WARN  [RS_CLOSE_REGION-pietas:52618-2] 
org.apache.tephra.coprocessor.ReferenceCountedSupplier(89): Exception while 
trying to stop Service TransactionStateCache.
com.google.common.util.concurrent.UncheckedExecutionException: 
java.lang.NullPointerException
        at 
com.google.common.util.concurrent.Futures.wrapAndThrowUnchecked(Futures.java:1015)
        at 
com.google.common.util.concurrent.Futures.getUnchecked(Futures.java:1001)
        at 
com.google.common.util.concurrent.AbstractService.stopAndWait(AbstractService.java:225)
        at 
com.google.common.util.concurrent.AbstractIdleService.stopAndWait(AbstractIdleService.java:122)
        at 
org.apache.tephra.coprocessor.ReferenceCountedSupplier.release(ReferenceCountedSupplier.java:86)
        at 
org.apache.tephra.coprocessor.TransactionStateCacheSupplier.release(TransactionStateCacheSupplier.java:61)
        at 
org.apache.tephra.hbase.coprocessor.TransactionProcessor.stop(TransactionProcessor.java:182)
        at 
org.apache.phoenix.coprocessor.DelegateRegionObserver.stop(DelegateRegionObserver.java:82)
        at 
org.apache.hadoop.hbase.coprocessor.CoprocessorHost$Environment.shutdown(CoprocessorHost.java:433)
        at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionEnvironment.shutdown(RegionCoprocessorHost.java:152)
        at 
org.apache.hadoop.hbase.coprocessor.CoprocessorHost.shutdown(CoprocessorHost.java:274)
        at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$5.postEnvCall(RegionCoprocessorHost.java:512)
        at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1761)
        at 
org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.postClose(RegionCoprocessorHost.java:505)
        at 
org.apache.hadoop.hbase.regionserver.HRegion.doClose(HRegion.java:1542)
        at org.apache.hadoop.hbase.regionserver.HRegion.close(HRegion.java:1381)
        at 
org.apache.hadoop.hbase.regionserver.handler.CloseRegionHandler.process(CloseRegionHandler.java:138)
        at 
org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:129)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
        at 
org.apache.tephra.coprocessor.TransactionStateCache.shutDown(TransactionStateCache.java:85)
        at 
com.google.common.util.concurrent.AbstractIdleService$1$2.run(AbstractIdleService.java:57)
        ... 1 more
2017-07-19 18:57:56,139 DEBUG [RS_CLOSE_REGION-pietas:52618-2] 
org.apache.hadoop.hbase.coprocessor.CoprocessorHost(272): Stop coprocessor 
org.apache.phoenix.coprocessor.ServerCachingEndpointImpl
2017-07-19 18:57:56,139 DEBUG [RS_CLOSE_REGION-pietas:52618-2] 
org.apache.hadoop.hbase.coprocessor.CoprocessorHost(272): Stop coprocessor 
org.apache.phoenix.coprocessor.GroupedAggregateRegionObserver
2017-07-19 18:
{code}

Test run: 
https://builds.apache.org/job/Phoenix-master/1699/testReport/junit/org.apache.phoenix.end2end/ViewIT/testNonSaltedUpdatableViewWithIndex_transactional___false_/




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to