You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Daniel Templeton (JIRA)" <ji...@apache.org> on 2015/08/24 21:45:45 UTC

[jira] [Created] (HDFS-8950) NameNode refresh doesn't remove DataNodes

Daniel Templeton created HDFS-8950:
--------------------------------------

             Summary: NameNode refresh doesn't remove DataNodes
                 Key: HDFS-8950
                 URL: https://issues.apache.org/jira/browse/HDFS-8950
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: datanode, namenode
    Affects Versions: 2.6.0
            Reporter: Daniel Templeton
            Assignee: Daniel Templeton


If you remove a DN from NN's allowed host list (HDFS was HA) and then do NN refresh, it doesn't remove it actually and the NN UI keeps showing that node. It may try to allocate some blocks to that DN as well during an MR job.  This issue is independent from DN decommission.

To reproduce:
1. Add a DN to dfs_hosts_allow
2. Refresh NN
3. Start DN. Now NN starts seeing DN.
4. Stop DN
5. Remove DN from dfs_hosts_allow
6. Refresh NN -> NN is still reporting DN as being used by HDFS.

This is different from decom because there DN is added to exclude list in addition to being removed from allowed list, and in that case everything works correctly.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)