hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rohithsharm...@apache.org
Subject hadoop git commit: Revert "HADOOP-12687. SecureUtil#QualifiedHostResolver#getByName should also try to resolve direct hostname (Sunil G via rohithsharmaks)"
Date Fri, 08 Jan 2016 09:06:05 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 89022f8d4 -> ed18527e3


Revert "HADOOP-12687. SecureUtil#QualifiedHostResolver#getByName should also try to resolve
direct hostname (Sunil G via rohithsharmaks)"

This reverts commit 2b252844e04eebd4f32815d4bd6f914c02994709.

Conflicts:
	hadoop-common-project/hadoop-common/CHANGES.txt


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ed18527e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ed18527e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ed18527e

Branch: refs/heads/trunk
Commit: ed18527e38438113fdf2f48b08be5ec283a5f481
Parents: 89022f8
Author: rohithsharmaks <rohithsharmaks@apache.org>
Authored: Fri Jan 8 14:30:28 2016 +0530
Committer: rohithsharmaks <rohithsharmaks@apache.org>
Committed: Fri Jan 8 14:30:28 2016 +0530

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt                | 4 ----
 .../src/main/java/org/apache/hadoop/security/SecurityUtil.java | 6 ------
 2 files changed, 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/ed18527e/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 84cd025..78cd2dd 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -661,10 +661,6 @@ Release 2.9.0 - UNRELEASED
 
   BUG FIXES
 
-    HADOOP-12687. SecureUtil#QualifiedHostResolver#getByName should also try to
-    resolve direct hostname, incase multiple loopback addresses are present in
-    /etc/hosts (Sunil G via rohithsharmaks)
-
     HADOOP-12655. TestHttpServer.testBindAddress bind port range is wider
     than expected. (Wei-Chiu Chuang via stevel)
 

http://git-wip-us.apache.org/repos/asf/hadoop/blob/ed18527e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java
index 714c923..38096ab 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java
@@ -580,13 +580,7 @@ public class SecurityUtil {
           addr = getByNameWithSearch(host);
           if (addr == null) {
             addr = getByExactName(host);
-            // If multiple loopback addresses are present, a direct lookup
-            // will be helpful
-            if (addr == null) {
-              addr = InetAddress.getByName(host);
-            }
           }
-
         }
       }
       // unresolvable!


Mime
View raw message