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 2012/08/05 02:53:21 UTC

[jira] [Commented] (HBASE-6293) HMaster does not go down while splitting logs even if explicit shutdown is called.

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

Hudson commented on HBASE-6293:
-------------------------------

Integrated in HBase-0.94-security-on-Hadoop-23 #6 (See [https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/6/])
    HBASE-6293 HMaster does not go down while splitting logs even if explicit shutdown is called. (Revision 1357759)

     Result = FAILURE
larsh : 
Files : 
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java

                
> HMaster does not go down while splitting logs even if explicit shutdown is called.
> ----------------------------------------------------------------------------------
>
>                 Key: HBASE-6293
>                 URL: https://issues.apache.org/jira/browse/HBASE-6293
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.1, 0.94.0
>            Reporter: rajeshbabu
>            Assignee: Lars Hofhansl
>             Fix For: 0.92.2, 0.96.0, 0.94.1
>
>         Attachments: 6293.txt
>
>
> When master starts up and tries to do splitlog, in case of any error we try to do that infinitely in a loop until it succeeds.
> But now if we get a shutdown call, inside SplitLogManager
> {code}
>           if (stopper.isStopped()) {
>             LOG.warn("Stopped while waiting for log splits to be completed");
>             return;
>           }
> {code}
> Here we know that the master has stopped.  As the task may not be completed now
> {code}
>  if (batch.done != batch.installed) {
>       batch.isDead = true;
>       tot_mgr_log_split_batch_err.incrementAndGet();
>       LOG.warn("error while splitting logs in " + logDirs +
>       " installed = " + batch.installed + " but only " + batch.done + " done");
>       throw new IOException("error or interrupt while splitting logs in "
>           + logDirs + " Task = " + batch);
>     }
> {code} 
> we throw an exception.  In MasterFileSystem.splitLogAfterStartup() we don't check if the master is stopped and we try continously. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira