[
https://issues.apache.org/jira/browse/HDFS-12932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16298764#comment-16298764
]
Hudson commented on HDFS-12932:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13409 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/13409/])
HDFS-12932. Fix confusing LOG message for block replication. Contributed (weiy:
rev a78db9919065d06ced8122229530f44cc7369857)
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java
> 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: [email protected]
For additional commands, e-mail: [email protected]