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

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

Samarth Jain created PHOENIX-3260:
-------------------------------------

             Summary: 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
             Fix For: 4.8.1


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)