You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2016/09/09 17:22:20 UTC

[jira] [Commented] (PHOENIX-3260) MetadataRegionObserver.postOpen() can prevent region server from shutting down for a long duration

    [ https://issues.apache.org/jira/browse/PHOENIX-3260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15477644#comment-15477644 ] 

James Taylor commented on PHOENIX-3260:
---------------------------------------

+1. Definitely 4.8.1. Do you think this is contributing to our test hangs, [~samarthjain]?

> MetadataRegionObserver.postOpen() can prevent region server from shutting down for a long duration
> --------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-3260
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3260
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Samarth Jain
>            Assignee: Samarth Jain
>         Attachments: PHOENIX-3260.patch
>
>
> On my local setup, I noticed that invoking ./stop-hbase.sh wasn't able to shutdown the hbase cluster for a long time. Doing a jstack revealed that the thread being created in MetadataRegionObserver.postOpen() is not assigned as daemon. This could prevent the region server hosting the SYSTEM.CATALOG table from shutting down for a long duration. 
> Stacktrace of the hung thread:
> {code}
> "Thread-87" prio=5 tid=0x00007ffbd699d800 nid=0x1b607 waiting on condition [0x0000000120446000]
>    java.lang.Thread.State: TIMED_WAITING (sleeping)
> 	at java.lang.Thread.sleep(Native Method)
> 	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:149)
> 	- locked <0x00000007d1ab8140> (a org.apache.hadoop.hbase.client.RpcRetryingCaller)
> 	at org.apache.hadoop.hbase.client.HTable.get(HTable.java:833)
> 	at org.apache.hadoop.hbase.client.HTable.get(HTable.java:810)
> 	at org.apache.hadoop.hbase.coprocessor.CoprocessorHost$Environment$HTableWrapper.get(CoprocessorHost.java:466)
> 	at org.apache.phoenix.util.UpgradeUtil.truncateStats(UpgradeUtil.java:1226)
> 	at org.apache.phoenix.coprocessor.MetaDataRegionObserver$1.run(MetaDataRegionObserver.java:148)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}



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