hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7933) fsck should also report decommissioning replicas.
Date Wed, 08 Apr 2015 19:13:12 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14485837#comment-14485837

Chris Nauroth commented on HDFS-7933:

Hi Xiaoyu.  This patch looks good.  Here are a few comments:
# In {{BlockManager#chooseSourceDatanode}}, should the {{decommissioning}} counter be incremented
by {{countableReplica}}, like for the other counters?
      if ((nodesCorrupt != null) && (nodesCorrupt.contains(node)))
        corrupt += countableReplica;
      else if (node.isDecommissionInProgress()) {
      } else if (node.isDecommissioned()) {
        decommissioned += countableReplica;
# Could the deprecated {{NumberReplicas#decommissionedReplicas}} be implemented to forward
the call to {{decommissionedAndDecommissioning}}?  If so, then we can eliminate the {{decommissionedReplicas}}
member variable.
# The new test in {{TestFsck}} appears to create a {{StringBuilder}}, append data to it, and
then never use it for anything.  Can it be removed?

> fsck should also report decommissioning replicas. 
> --------------------------------------------------
>                 Key: HDFS-7933
>                 URL: https://issues.apache.org/jira/browse/HDFS-7933
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>            Reporter: Jitendra Nath Pandey
>            Assignee: Xiaoyu Yao
>         Attachments: HDFS-7933.00.patch, HDFS-7933.01.patch, HDFS-7933.02.patch
> Fsck doesn't count replicas that are on decommissioning nodes. If a block has all replicas
on the decommissioning nodes, it will be marked as missing, which is alarming for the admins,
although the system will replicate them before nodes are decommissioned.
> Fsck output should also show decommissioning replicas along with the live replicas.

This message was sent by Atlassian JIRA

View raw message