You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2012/10/10 05:20:04 UTC

[jira] [Commented] (HBASE-6970) hbase-deamon.sh creates/updates pid file even when that start failed.

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

Lars Hofhansl commented on HBASE-6970:
--------------------------------------

Also we found that the stop command does not return a failed exit code (<> 0), if the stop fails because the running process was not found.

I am not sure how risky changing this behavior is for current installation that might rely on the this behavior.
                
> hbase-deamon.sh creates/updates pid file even when that start failed.
> ---------------------------------------------------------------------
>
>                 Key: HBASE-6970
>                 URL: https://issues.apache.org/jira/browse/HBASE-6970
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>
> We just ran into a strange issue where could start or stop services with hbase-deamon.sh.
> The problem is this:
> {code}
>     nohup nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \
>         --config "${HBASE_CONF_DIR}" \
>         $command "$@" $startStop > "$logout" 2>&1 < /dev/null &
>     echo $! > $pid
> {code}
> So the pid file is create or update even the start of the service failed. The next stop command will then fail, because the pid file has he wrong pid in it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira