[
https://issues.apache.org/jira/browse/PHOENIX-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14515123#comment-14515123
]
Maryann Xue commented on PHOENIX-1929:
--------------------------------------
[~samarthjain], yes, it looks like the same problem, but PHOENIX-1562 was a
random failure and could not be reproduced, so I was not sure if my patch then
had really fixed the problem.
In theory, "cacheUsingTableRef" should never be null, nor should
"cacheUsingTableRef.getTable()". When adding cache, we use
cacheUsingTableRef.getTable() to find all HBase regions the table has. And
right before it returns with success, it adds this tableRef into the
cacheUsingTableRefMap. I think we need to find why this is null at the point of
close() instead of covering this problem.
> Unit Test Failures with NPE, etc.
> ---------------------------------
>
> Key: PHOENIX-1929
> URL: https://issues.apache.org/jira/browse/PHOENIX-1929
> Project: Phoenix
> Issue Type: Bug
> Reporter: Alicia Ying Shu
> Assignee: Alicia Ying Shu
> Attachments: Phoenix-1929.patch
>
>
> Tests run: 102, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 125.542 sec
> <<< FAILURE! - in org.apache.phoenix.end2end.HashJoinIT
> testMultiLeftJoin[1](org.apache.phoenix.end2end.HashJoinIT) Time elapsed:
> 0.91 sec <<< ERROR!
> java.lang.NullPointerException: null
> at
> org.apache.phoenix.cache.ServerCacheClient.removeServerCache(ServerCacheClient.java:285)
> at
> org.apache.phoenix.cache.ServerCacheClient.access$000(ServerCacheClient.java:80)
> at
> org.apache.phoenix.cache.ServerCacheClient$ServerCache.close(ServerCacheClient.java:140)
> at
> org.apache.phoenix.util.SQLCloseables.closeAllQuietly(SQLCloseables.java:53)
> at org.apache.phoenix.util.SQLCloseables.closeAll(SQLCloseables.java:43)
> at
> org.apache.phoenix.execute.BaseQueryPlan$1.close(BaseQueryPlan.java:229)
> at
> org.apache.phoenix.jdbc.PhoenixResultSet.close(PhoenixResultSet.java:135)
> at
> org.apache.phoenix.util.SQLCloseables.closeAllQuietly(SQLCloseables.java:53)
> at org.apache.phoenix.util.SQLCloseables.closeAll(SQLCloseables.java:43)
> at
> org.apache.phoenix.jdbc.PhoenixStatement.close(PhoenixStatement.java:953)
> at
> org.apache.phoenix.util.SQLCloseables.closeAllQuietly(SQLCloseables.java:53)
> at org.apache.phoenix.util.SQLCloseables.closeAll(SQLCloseables.java:43)
> at
> org.apache.phoenix.jdbc.PhoenixConnection.closeStatements(PhoenixConnection.java:381)
> at
> org.apache.phoenix.jdbc.PhoenixConnection.close(PhoenixConnection.java:395)
> at
> org.apache.phoenix.end2end.HashJoinIT.testMultiLeftJoin(HashJoinIT.java:2181)
> Tests run: 16, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 99.733 sec
> <<< FAILURE! - in org.apache.phoenix.end2end.index.LocalIndexIT
> testDropLocalIndexShouldDeleteDataFromLocalIndexTable(org.apache.phoenix.end2end.index.LocalIndexIT)
> Time elapsed: 5.985 sec <<< ERROR!
> java.lang.RuntimeException: java.util.concurrent.RejectedExecutionException:
> Task
> org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture@1d9dd786
> rejected from java.util.concurrent.ThreadPoolExecutor@65b0ad9a[Running, pool
> size = 2, active threads = 2, queued tasks = 0, completed tasks = 2]
> at
> java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)
> at
> java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
> at
> java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
> at
> org.apache.hadoop.hbase.client.ResultBoundedCompletionService.submit(ResultBoundedCompletionService.java:144)
> at
> org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.addCallsForCurrentReplica(ScannerCallableWithReplicas.java:248)
> at
> org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:145)
> at
> org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:55)
> at
> org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:197)
> at
> org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:288)
> at
> org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:268)
> at
> org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:140)
> at
> org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:135)
> at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:802)
> at
> org.apache.phoenix.end2end.index.LocalIndexIT.testDropLocalIndexShouldDeleteDataFromLocalIndexTable(LocalIndexIT.java:507)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)