[
https://issues.apache.org/jira/browse/HDFS-4127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486387#comment-13486387
]
Junping Du commented on HDFS-4127:
----------------------------------
Hi Jing, Thanks for the comments. For calculating number of replicas, I think
you are right that totalReplicasExpected now is N-3, but should be N as log
message blow. Thus, we could update totalReplicasExpected
>From
totalReplicasExpected = numOfReplicas;
To
totalReplicasExpected = numOfReplicas + result.size();
What do you think?
> Log message is not correct in case of short of replica
> ------------------------------------------------------
>
> Key: HDFS-4127
> URL: https://issues.apache.org/jira/browse/HDFS-4127
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: name-node
> Affects Versions: 1.0.4, 2.0.2-alpha
> Reporter: Junping Du
> Assignee: Junping Du
> Priority: Minor
> Attachments: HDFS-4127.patch
>
>
> For some reason that block cannot be placed with enough replica (like no
> enough available data nodes), it will throw a warning with wrong number of
> replica in short.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira