hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chao Sun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-12932) Confusing LOG message for block replication
Date Mon, 18 Dec 2017 21:37:01 GMT

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

Chao Sun updated HDFS-12932:
----------------------------
    Status: Patch Available  (was: Open)

> 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
>         Attachments: HDFS-12932.0.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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message