You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/08/02 17:22:21 UTC

[jira] [Commented] (HBASE-16244) LocalHBaseCluster start timeout should be configurable

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

Hudson commented on HBASE-16244:
--------------------------------

FAILURE: Integrated in HBase-0.98-on-Hadoop-1.1 #1251 (See [https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/1251/])
HBASE-16244 LocalHBaseCluster start timeout should be configurable (apurtell: rev 8f5fe00419e4429c9c4d196354316f17c13385fe)
* hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java
* hbase-server/src/main/java/org/apache/hadoop/hbase/util/JVMClusterUtil.java


> LocalHBaseCluster start timeout should be configurable
> ------------------------------------------------------
>
>                 Key: HBASE-16244
>                 URL: https://issues.apache.org/jira/browse/HBASE-16244
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase
>    Affects Versions: 1.0.1.1
>            Reporter: Siddharth Wagle
>             Fix For: 2.0.0, 1.4.0, 0.98.21
>
>         Attachments: HBASE-16244.patch
>
>
> *Scenario*:
> - Ambari metrics service uses HBase in standalone mode
> - On restart of AMS HBase, the Master gives up in 30 seconds due to a hardcoded timeout in JVMClusterUtil
> {noformat}
> 2016-07-18 19:24:44,199 ERROR [main] master.HMasterCommandLine: Master exiting
> java.lang.RuntimeException: Master not active after 30 seconds
>         at org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:194)
>         at org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:445)
>         at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:227)
>         at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:139)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>         at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
>         at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2526)
> {noformat}
> - On restart the current Master waits to become active and this leads to the timeout being triggered, waiting for a slightly longer time evades this issue.
> - The timeout it seems was meant for unit tests
> Attached patch allows the timeout to be configured via hbase-site as well as sets it to 5 minutes for clusters started through HMasterCommandLine.



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