Revert "HADOOP-12687. SecureUtil#QualifiedHostResolver#getByName should also try to resolve direct hostname (Sunil G via rohithsharmaks)"
This reverts commit 2b252844e0
.
Conflicts:
hadoop-common-project/hadoop-common/CHANGES.txt
This commit is contained in:
parent
89022f8d4b
commit
ed18527e38
@ -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)
|
||||
|
||||
|
@ -580,14 +580,8 @@ public InetAddress getByName(String host) throws UnknownHostException {
|
||||
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!
|
||||
if (addr == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user