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

Konstantin Shvachko commented on HDFS-4347:
-------------------------------------------

In the case {{waitCheckpointDone()}} will loop until the next checkpoint spewing
{code}
2012-12-28 15:37:13,664 INFO  namenode.TestBackupNode 
(TestBackupNode.java:waitCheckpointDone(117)) - Waiting checkpoint to 
complete... checkpoint txid should increase above 10
2012-12-28 15:37:21,986 INFO  namenode.TestBackupNode 
(TestBackupNode.java:waitCheckpointDone(117)) - Waiting checkpoint to 
complete... checkpoint txid should increase above 10
2012-12-28 15:37:22,987 INFO  namenode.TestBackupNode 
(TestBackupNode.java:waitCheckpointDone(117)) - Waiting checkpoint to 
complete... checkpoint txid should increase above 10
{code}

Which will go on until the next checkpoint, which could be long depending on 
configuration parameters.

The problem is that in {{testCheckpoint(StartupOption op)}} we 
{{startBackupNode()}} twice and both times {{waitCheckpointDone()}} after that. 
The difference is that in the first occurrence {{txid}} is calculated before  
{{startBackupNode()}} and in the second it is calculated afterwards.
                
> TestBackupNode can go into infinite loop "Waiting checkpoint to complete."
> --------------------------------------------------------------------------
>
>                 Key: HDFS-4347
>                 URL: https://issues.apache.org/jira/browse/HDFS-4347
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode, test
>    Affects Versions: 2.0.3-alpha
>            Reporter: Konstantin Shvachko
>
> {{waitCheckpointDone()}} can loop forever if txid to wait for is calculated 
> after {{startBackupNode()}}.

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

Reply via email to