You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jason Vas Dias (JIRA)" <ji...@apache.org> on 2013/11/13 15:27:25 UTC

[jira] [Created] (HBASE-9964) start-hbase.sh returns success exit status and emits "starting master" message when master failed to start

Jason Vas Dias created HBASE-9964:
-------------------------------------

             Summary: start-hbase.sh returns success exit status and emits "starting master" message when master failed to start
                 Key: HBASE-9964
                 URL: https://issues.apache.org/jira/browse/HBASE-9964
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.94.13
         Environment: Linux x86_64 (Centos 6.4)
            Reporter: Jason Vas Dias


The bin/start-hbase.sh script returns an exit status indicating success, and emits the message : 'starting master, logging to ...' ,  even though the master failed to start:
    $ ./bin/start-hbase.sh
    starting master, logging to /home/jason/3P/hbase-0.94.13/logs/hbase-jason-master-jvds.out
    $ echo $?
    0
#  ^- this indicates successful exit status on Linux / UNIX-like systems
    $ egrep 'start master|RuntimeException' logs/hbase-jason-master-jvds.log 
2013-11-13 14:15:28,309 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master
java.lang.RuntimeException: Failed suppression of fs shutdown hook: Thread[Thread-27,5,main]

The start-base.sh script should IMHO in the above scenario emit a message like 
'Failed to start the hbase master:   java.lang.RuntimeException: Failed suppression of fs shutdown hook'
and return a non-zero exit status.



--
This message was sent by Atlassian JIRA
(v6.1#6144)