[ 
https://issues.apache.org/jira/browse/HDFS-5439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arpit Agarwal updated HDFS-5439:
--------------------------------

    Attachment: h5439.04.patch

Attaching patch to fix the following:
# Bug in {{BlockPlacementPolicyDefault#chooseRandom}} hit when numOfReplicas > 
2.
# {{PendingReplicationBlocks}} tracks replicas by {{DatanodeDescriptor}} 
instead of {{DatanodeStorageInfo}}
# Update couple of logs (copied from Junping's patch), remove obsolete TODO in 
{{BPServiceActor}}
# Update {{TestPendingReplications}}

Junping, I did not understand your comment about 
{{computeReplicationWorkForBlocks}}. Also I don't think we need 1 and 2 from 
your list.

> Fix TestPendingReplication
> --------------------------
>
>                 Key: HDFS-5439
>                 URL: https://issues.apache.org/jira/browse/HDFS-5439
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>    Affects Versions: Heterogeneous Storage (HDFS-2832)
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>         Attachments: HDFS-5439-demo1.patch, h5439.04.patch
>
>
> {{TestPendingReplication}} fails with the following exception:
> {code}
> java.lang.AssertionError: expected:<4> but was:<3>
>         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:472)
>         at org.junit.Assert.assertEquals(Assert.java:456)
>         at 
> org.apache.hadoop.hdfs.server.blockmanagement.TestPendingReplication.testBlockReceived(TestPendingReplication.java:186)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to