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

John George updated HDFS-2120:
------------------------------

    Attachment: HDFS-2120.patch

Attaching a patch to check if the build versions and layout versions are the 
same when NN tries to register() the DN.

Before this patch, it was possible for a DN and NN to connect to each other 
with different build versions because DN only checked for build versions when 
it did a handshake() with the NN. 

No new tests added because it seemed extremely difficult to add a manual test 
to verify this.

The way I verified this is as follows:
1. start DN, NN
2. stop NN and change buildVersion by manually changing saveVersion.sh file. 
3. start NN.
4. When NN comes up and registers with DN, it keeps rejecting because of the 
version difference (this was not happening before).

> on reconnect, DN can connect to NN even with different source versions
> ----------------------------------------------------------------------
>
>                 Key: HDFS-2120
>                 URL: https://issues.apache.org/jira/browse/HDFS-2120
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: John George
>            Assignee: John George
>         Attachments: HDFS-2120.patch
>
>
> DN or NN does not check for source versions in cases when NN goes away or has 
> lost connection. The only check that is done by NN is for LAYOUT_VERSION and 
> DN does not check for any version mismatch. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to