[
https://issues.apache.org/jira/browse/HDFS-7039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz Wo Nicholas Sze updated HDFS-7039:
--------------------------------------
Attachment: h7039_20140911.patch
I added checking target space for scheduling in HDFS-6801 but Balancer did not
run with it correctly. Let's remove it for now.
h7039_20140911.patch
> Archival Storage: fix Balancer tests
> ------------------------------------
>
> Key: HDFS-7039
> URL: https://issues.apache.org/jira/browse/HDFS-7039
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: balancer
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Attachments: h7039_20140911.patch
>
>
> Most of the Balancer tests failed with incorrect exit code. For example,
> {noformat}
> java.lang.AssertionError: Tools should exit 0 on success expected:<0> but
> was:<-3>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:555)
> at
> org.apache.hadoop.hdfs.server.balancer.TestBalancer.runBalancerCli(TestBalancer.java:629)
> at
> org.apache.hadoop.hdfs.server.balancer.TestBalancer.doTest(TestBalancer.java:549)
> at
> org.apache.hadoop.hdfs.server.balancer.TestBalancer.doTest(TestBalancer.java:437)
> at
> org.apache.hadoop.hdfs.server.balancer.TestBalancer.oneNodeTest(TestBalancer.java:645)
> at
> org.apache.hadoop.hdfs.server.balancer.TestBalancer.testExitZeroOnSuccess(TestBalancer.java:911)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)