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

Wei Yan updated HDFS-12932:
---------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks for the contribution [~csun]

> Fix confusing LOG message for block replication
> -----------------------------------------------
>
>                 Key: HDFS-12932
>                 URL: https://issues.apache.org/jira/browse/HDFS-12932
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>    Affects Versions: 2.8.3
>            Reporter: Chao Sun
>            Assignee: Chao Sun
>            Priority: Minor
>             Fix For: 3.1.0
>
>         Attachments: HDFS-12932.0.patch, HDFS-12932.1.patch
>
>
> In our cluster we see large number of log messages such as the following:
> {code}
> 2017-12-15 22:55:54,603 INFO 
> org.apache.hadoop.hdfs.server.namenode.FSDirectory: Increasing replication 
> from 3 to 3 for <HDFS file>
> {code}
> This is a little confusing since "from 3 to 3" is not "increasing". Digging 
> into it, it seems related to this piece of code:
> {code}
>     if (oldBR != -1) {
>       if (oldBR > targetReplication) {
>         FSDirectory.LOG.info("Decreasing replication from {} to {} for {}",
>                              oldBR, targetReplication, iip.getPath());
>       } else {
>         FSDirectory.LOG.info("Increasing replication from {} to {} for {}",
>                              oldBR, targetReplication, iip.getPath());
>       }
>     }
> {code}
> Perhaps a {{oldBR == targetReplication}} case is missing?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to