You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2011/03/04 05:07:59 UTC

svn commit: r1077369 - /hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java

Author: omalley
Date: Fri Mar  4 04:07:59 2011
New Revision: 1077369

URL: http://svn.apache.org/viewvc?rev=1077369&view=rev
Log:
commit 127148ec15ec358e72d0d8767c5d6820b8ca4e77
Author: Jakob Homan <jh...@yahoo-inc.com>
Date:   Mon Apr 5 16:28:56 2010 -0700

    HDFS:1080 from https://issues.apache.org/jira/secure/attachment/12440810/HDFS-1080-Y20.patch
    
    +++ b/YAHOO-CHANGES.txt
    +
    +    HDFS-1080.  SecondaryNameNode image transfer should use the defined
    +    http address rather than local ip address (jhoman)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java?rev=1077369&r1=1077368&r2=1077369&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java (original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java Fri Mar  4 04:07:59 2011
@@ -376,8 +376,7 @@ public class SecondaryNameNode implement
    */
   private void putFSImage(CheckpointSignature sig) throws IOException {
     String fileid = "putimage=1&port=" + imagePort +
-      "&machine=" +
-      InetAddress.getLocalHost().getHostAddress() +
+      "&machine=" + infoBindAddress +
       "&token=" + sig.toString();
     LOG.info("Posted URL " + fsName + fileid);
     TransferFsImage.getFileClient(fsName, fileid, (File[])null);