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

Eli Collins commented on HDFS-3625:
-----------------------------------

Some further BN/test work is required as after adding the necesssary check the 
test still fails:

{noformat}
2012-07-10 10:12:24,648 FATAL namenode.NameNode 
(NameNode.java:doImmediateShutdown(1279)) - Error encountered requiring NN 
shutdown. Shutting down immediately.
java.lang.IllegalStateException: Cannot start writing at txid 1 when there is a 
stream available for read: 
org.apache.hadoop.hdfs.server.namenode.RedundantEditLogInputStream@6178b9ce
        at 
org.apache.hadoop.hdfs.server.namenode.FSEditLog.openForWrite(FSEditLog.java:277)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startActiveServices(FSNamesystem.java:642)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode$NameNodeHAContext.startActiveServices(NameNode.java:1303)
        at 
org.apache.hadoop.hdfs.server.namenode.ha.ActiveState.enterState(ActiveState.java:61)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:593)
        at 
org.apache.hadoop.hdfs.server.namenode.BackupNode.<init>(BackupNode.java:87)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1122)
        at 
org.apache.hadoop.hdfs.server.namenode.TestBackupNode.startBackupNode(TestBackupNode.java:94)
        at 
org.apache.hadoop.hdfs.server.namenode.TestBackupNode.testCheckpoint(TestBackupNode.java:327)
        at 
org.apache.hadoop.hdfs.server.namenode.TestBackupNode.testCheckpointNode(TestBackupNode.java:116)
  

{noformat}

                
> FSN#startActiveServices assumes standby services started 
> ---------------------------------------------------------
>
>                 Key: HDFS-3625
>                 URL: https://issues.apache.org/jira/browse/HDFS-3625
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: ha
>    Affects Versions: 2.0.0-alpha
>            Reporter: Eli Collins
>
> TestBackupNode#testCheckpointNode fails because the following code in 
> FSN#startActiveServices NPEs (resulting in a System.exit) because 
> editLogTailer is set when starting standby services and if ha is not enabled 
> we go directly to the active state. Looks like it should be wrapped with an 
> haEnabled check.
> {code}
> LOG.info("Catching up to latest edits from old active before " +
>    "taking over writer role in edits logs.");
> editLogTailer.catchupDuringFailover();
> {code}

--
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

        

Reply via email to