[
https://issues.apache.org/jira/browse/HADOOP-4297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649130#action_12649130
]
dhruba borthakur commented on HADOOP-4297:
------------------------------------------
TestBalancer failed beucase of this one:
java.lang.AssertionError: Mismatched number of datanodes
at
org.apache.hadoop.hdfs.server.balancer.Balancer.chooseNodes(Balancer.java:1009)
at
org.apache.hadoop.hdfs.server.balancer.Balancer.run(Balancer.java:1407)
at
org.apache.hadoop.hdfs.server.balancer.TestBalancer.runBalancer(TestBalancer.java:233)
at
org.apache.hadoop.hdfs.server.balancer.TestBalancer.test(TestBalancer.java:220)
at
org.apache.hadoop.hdfs.server.balancer.TestBalancer.testBalancer0(TestBalancer.java:262)
TestCheckpiont failed :
java.lang.AssertionError: Negative layout version is expected.
at
org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:804)
at
org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$CheckpointStorage.doMerge(SecondaryNameNode.java:589)
at
org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$CheckpointStorage.access$000(SecondaryNameNode.java:473)
at
org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doMerge(SecondaryNameNode.java:350)
at
org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doCheckpoint(SecondaryNameNode.java:314)
at
org.apache.hadoop.hdfs.server.namenode.TestCheckpoint.testCheckpoint(TestCheckpoint.java:594)
If somebody ca take a look into these two asserts, that would be great!
> Enable Java assertions when running tests
> -----------------------------------------
>
> Key: HADOOP-4297
> URL: https://issues.apache.org/jira/browse/HADOOP-4297
> Project: Hadoop Core
> Issue Type: Improvement
> Components: build
> Affects Versions: 0.19.0, 0.20.0
> Reporter: Yoram Kulbak
> Fix For: 0.20.0
>
> Attachments: HADOOP-4297.patch, HADOOP-4297.patch
>
>
> A suggestion to enable Java assertions in the project's build xml when
> running tests. I think this would improve the build quality.
> To enable assertions add the following snippets to the JUnit tasks in
> build.xml:
> <assertions>
> <enable />
> </assertions>
> --
> For example:
> <junit ... >
> ...
> <assertions>
> <enable />
> </assertions>
> </junit>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.