[ https://issues.apache.org/jira/browse/HDFS-6250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13977645#comment-13977645 ]
Chen He commented on HDFS-6250: ------------------------------- In this test case, program starts a minicluster composed of 2 datanodes. Block size is 10B and total cluster capacity is 6000B ( 3000B on each datanodes). It create 180 data blocks with replication factor 2. Then, a node datanode is created and balancer starts to balancing the cluster considering rack locality. However, once balancer starts, HDFS creates a /system/balancer.id file (30B) to track the balancer. After balancer successes, HDFS should delete the /system/balancer.id file which is composed of 6 data blocks (2 replication for each data block). But HDFS failed to delete 1 data block of this /system/balancer.id file. This is why it reports 1810 data blocks instead of 1800. > TestBalancerWithNodeGroup.testBalancerWithRackLocality fails > ------------------------------------------------------------ > > Key: HDFS-6250 > URL: https://issues.apache.org/jira/browse/HDFS-6250 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Kihwal Lee > Assignee: Chen He > Attachments: test_log.txt > > > It was seen in https://builds.apache.org/job/PreCommit-HDFS-Build/6669/ > {panel} > java.lang.AssertionError: expected:<1800> but was:<1810> > at org.junit.Assert.fail(Assert.java:93) > at org.junit.Assert.failNotEquals(Assert.java:647) > at org.junit.Assert.assertEquals(Assert.java:128) > at org.junit.Assert.assertEquals(Assert.java:147) > at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithNodeGroup > .testBalancerWithRackLocality(TestBalancerWithNodeGroup.java:253) > {panel} -- This message was sent by Atlassian JIRA (v6.2#6252)