You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ivan Mitic (JIRA)" <ji...@apache.org> on 2012/11/28 00:18:58 UTC
[jira] [Created] (HADOOP-9099) NetUtils.normalizeHostName fails on
domains where UnknownHost resolves to an IP address
Ivan Mitic created HADOOP-9099:
----------------------------------
Summary: NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address
Key: HADOOP-9099
URL: https://issues.apache.org/jira/browse/HADOOP-9099
Project: Hadoop Common
Issue Type: Bug
Affects Versions: 1-win
Reporter: Ivan Mitic
Assignee: Ivan Mitic
I just hit this failure. We should use some more unique string for "UnknownHost":
Testcase: testNormalizeHostName took 0.007 sec
FAILED
expected:<[65.53.5.181]> but was:<[UnknownHost]>
junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)
Will post a patch in a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-9099) NetUtils.normalizeHostName fails on
domains where UnknownHost resolves to an IP address
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE updated HADOOP-9099:
-------------------------------------------
Component/s: test
Priority: Minor (was: Major)
Hadoop Flags: Reviewed
+1 patch looks good.
> NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address
> ---------------------------------------------------------------------------------------
>
> Key: HADOOP-9099
> URL: https://issues.apache.org/jira/browse/HADOOP-9099
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Priority: Minor
> Attachments: HADOOP-9099.branch-1-win.patch
>
>
> I just hit this failure. We should use some more unique string for "UnknownHost":
> Testcase: testNormalizeHostName took 0.007 sec
> FAILED
> expected:<[65.53.5.181]> but was:<[UnknownHost]>
> junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
> at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)
> Will post a patch in a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9099) NetUtils.normalizeHostName fails
on domains where UnknownHost resolves to an IP address
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505082#comment-13505082 ]
Tsz Wo (Nicholas), SZE commented on HADOOP-9099:
------------------------------------------------
I understand the problem after looked at Ivan's patch - "UnknownHost" was resolved to an IP in your setting.
> NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address
> ---------------------------------------------------------------------------------------
>
> Key: HADOOP-9099
> URL: https://issues.apache.org/jira/browse/HADOOP-9099
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Attachments: HADOOP-9099.branch-1-win.patch
>
>
> I just hit this failure. We should use some more unique string for "UnknownHost":
> Testcase: testNormalizeHostName took 0.007 sec
> FAILED
> expected:<[65.53.5.181]> but was:<[UnknownHost]>
> junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
> at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)
> Will post a patch in a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (HADOOP-9099) NetUtils.normalizeHostName fails on
domains where UnknownHost resolves to an IP address
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE resolved HADOOP-9099.
--------------------------------------------
Resolution: Fixed
Fix Version/s: 1-win
1.2.0
I have committed this. Thanks, Ivan!
> NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address
> ---------------------------------------------------------------------------------------
>
> Key: HADOOP-9099
> URL: https://issues.apache.org/jira/browse/HADOOP-9099
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Priority: Minor
> Fix For: 1.2.0, 1-win
>
> Attachments: HADOOP-9099.branch-1-win.patch
>
>
> I just hit this failure. We should use some more unique string for "UnknownHost":
> Testcase: testNormalizeHostName took 0.007 sec
> FAILED
> expected:<[65.53.5.181]> but was:<[UnknownHost]>
> junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
> at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)
> Will post a patch in a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9099) NetUtils.normalizeHostName fails
on domains where UnknownHost resolves to an IP address
Posted by "Ivan Mitic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506950#comment-13506950 ]
Ivan Mitic commented on HADOOP-9099:
------------------------------------
Thanks Mostafa and Nicholas for the review!
> NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address
> ---------------------------------------------------------------------------------------
>
> Key: HADOOP-9099
> URL: https://issues.apache.org/jira/browse/HADOOP-9099
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Priority: Minor
> Fix For: 1.2.0, 1-win
>
> Attachments: HADOOP-9099.branch-1-win.patch
>
>
> I just hit this failure. We should use some more unique string for "UnknownHost":
> Testcase: testNormalizeHostName took 0.007 sec
> FAILED
> expected:<[65.53.5.181]> but was:<[UnknownHost]>
> junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
> at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)
> Will post a patch in a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9099) NetUtils.normalizeHostName fails
on domains where UnknownHost resolves to an IP address
Posted by "Mostafa Elhemali (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505062#comment-13505062 ]
Mostafa Elhemali commented on HADOOP-9099:
------------------------------------------
Personally I would've used something even more unlikely, such as "ThisIsNotARealHostName-ItJustCant", but I guess UnknownHost123 is not very likely to exist :).
+1 (non-binding).
> NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address
> ---------------------------------------------------------------------------------------
>
> Key: HADOOP-9099
> URL: https://issues.apache.org/jira/browse/HADOOP-9099
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Attachments: HADOOP-9099.branch-1-win.patch
>
>
> I just hit this failure. We should use some more unique string for "UnknownHost":
> Testcase: testNormalizeHostName took 0.007 sec
> FAILED
> expected:<[65.53.5.181]> but was:<[UnknownHost]>
> junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
> at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)
> Will post a patch in a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-9099) NetUtils.normalizeHostName fails
on domains where UnknownHost resolves to an IP address
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505079#comment-13505079 ]
Tsz Wo (Nicholas), SZE commented on HADOOP-9099:
------------------------------------------------
TestNetUtils in branch-1-win does not fail in my machine. Is there any special setting in your machine/network?
BTW, I just have a quick check of the InetAddress source code (http://www.docjar.com/html/api/java/net/InetAddress.java.html). It seems that it won't do any lookup if the input string is already an numerical IP address. However, it is probably jdk dependent.
> NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address
> ---------------------------------------------------------------------------------------
>
> Key: HADOOP-9099
> URL: https://issues.apache.org/jira/browse/HADOOP-9099
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Attachments: HADOOP-9099.branch-1-win.patch
>
>
> I just hit this failure. We should use some more unique string for "UnknownHost":
> Testcase: testNormalizeHostName took 0.007 sec
> FAILED
> expected:<[65.53.5.181]> but was:<[UnknownHost]>
> junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
> at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)
> Will post a patch in a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-9099) NetUtils.normalizeHostName fails on
domains where UnknownHost resolves to an IP address
Posted by "Ivan Mitic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-9099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Mitic updated HADOOP-9099:
-------------------------------
Attachment: HADOOP-9099.branch-1-win.patch
Attaching the patch.
> NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address
> ---------------------------------------------------------------------------------------
>
> Key: HADOOP-9099
> URL: https://issues.apache.org/jira/browse/HADOOP-9099
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Attachments: HADOOP-9099.branch-1-win.patch
>
>
> I just hit this failure. We should use some more unique string for "UnknownHost":
> Testcase: testNormalizeHostName took 0.007 sec
> FAILED
> expected:<[65.53.5.181]> but was:<[UnknownHost]>
> junit.framework.AssertionFailedError: expected:<[65.53.5.181]> but was:<[UnknownHost]>
> at org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:347)
> Will post a patch in a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira