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

Hairong Kuang commented on HDFS-586:
------------------------------------

1. add a log message before the test goes to sleep.
2. instead of using while(true), I would prefer to put break condition there.
3, better use logging instead of System.out.print.

> TestBlocksWithNotEnoughRacks fails
> ----------------------------------
>
>                 Key: HDFS-586
>                 URL: https://issues.apache.org/jira/browse/HDFS-586
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.21.0
>            Reporter: Hairong Kuang
>            Assignee: Jitendra Nath Pandey
>             Fix For: 0.21.0
>
>         Attachments: HDFS-586.1.patch
>
>
> TestBlocksWithNotEnoughRacks failed with the following error on my Mac laptop:
> {noformat}
> Testcase: testUnderReplicatedNotEnoughRacks took 33.209 sec
>         FAILED
> null
> junit.framework.AssertionFailedError: null
>         at 
> org.apache.hadoop.hdfs.server.namenode.TestBlocksWithNotEnoughRacks.testUnderReplicatedNotEnoughRacks(TestBlocksWithNotEnoughRacks.java:127)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to