hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgho...@apache.org
Subject svn commit: r953929 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/net/NetUtils.java
Date Sat, 12 Jun 2010 02:12:16 GMT
Author: jghoman
Date: Sat Jun 12 02:12:16 2010
New Revision: 953929

URL: http://svn.apache.org/viewvc?rev=953929&view=rev
Log:
HADOOP-6682. NetUtils:normalizeHostName does not process hostnames starting with [a-f] correctly.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/net/NetUtils.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=953929&r1=953928&r2=953929&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Sat Jun 12 02:12:16 2010
@@ -87,6 +87,9 @@ Trunk (unreleased changes)
     HADOOP-6613. Moves the RPC version check ahead of the AuthMethod check.
     (Kan Zhang via ddas)
 
+    HADOOP-6682. NetUtils:normalizeHostName does not process hostnames starting
+    with [a-f] correctly. (jghoman)
+
 Release 0.21.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/net/NetUtils.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/net/NetUtils.java?rev=953929&r1=953928&r2=953929&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/net/NetUtils.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/net/NetUtils.java Sat Jun 12 02:12:16 2010
@@ -398,7 +398,7 @@ public class NetUtils {
    * @return its IP address in the string format
    */
   public static String normalizeHostName(String name) {
-    if (Character.digit(name.charAt(0), 16) != -1) { // it is an IP
+    if (Character.digit(name.charAt(0), 10) != -1) { // it is an IP
       return name;
     } else {
       try {



Mime
View raw message