hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lowe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3224) Bug in check for DN re-registration with different storage ID
Date Mon, 08 Oct 2012 14:32:02 GMT

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

Jason Lowe updated HDFS-3224:
-----------------------------

    Status: Open  (was: Patch Available)

bq. Why not just fix the lookup to use IP rather than IP:port?
I think if we just have the lookup use IP then we're going to create problems with setups
that launch multiple datanodes per host like miniclusters.  If we lookup only by IP then as
soon as the second datanode from the same IP registers we'll accidentally think it's replacing
the first datanode which isn't the intent.

TestCheckpoint failure appears to be unrelated, see HDFS-4006.  I'll update the patch to cleanup
the names and add a test case.
                
> Bug in check for DN re-registration with different storage ID
> -------------------------------------------------------------
>
>                 Key: HDFS-3224
>                 URL: https://issues.apache.org/jira/browse/HDFS-3224
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Eli Collins
>            Assignee: Jason Lowe
>            Priority: Minor
>         Attachments: HDFS-3224.patch
>
>
> DatanodeManager#registerDatanode checks the host to node map using an IP:port key, however
the map is keyed on IP, so this check will always fail. It's performing the check to determine
if a DN with the same IP and storage ID has already registered, and if so to remove this DN
from the map and indicate that eg it's no longer hosting these blocks. This bug has been here
forever.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message