[ 
https://issues.apache.org/jira/browse/HADOOP-18431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17598022#comment-17598022
 ] 

ASF GitHub Bot commented on HADOOP-18431:
-----------------------------------------

snmvaughan opened a new pull request, #4833:
URL: https://github.com/apache/hadoop/pull/4833

   ### Description of PR
   
   Tests that want to use an unresolvable address may actually resolve in some 
environments.  Replacing host names like "bogus" with a IETF RFC 2606 domain 
name avoids the issue.
   
   Use ".invalid" domain from IETF RFC 2606 to ensure that the host "bogus" 
doesn't resolve.
   
   ### How was this patch tested?
   
   Test were executed through both Maven Surefire and the IDE to demonstrate 
that this change resulted in the expected test result.
   
   ### For code changes:
   
   - [X] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   




> Unit test can fail due to unexpected host resolution
> ----------------------------------------------------
>
>                 Key: HADOOP-18431
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18431
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.4.0, 3.3.9
>         Environment: Running using both Maven Surefire and an IDE results in 
> a test failure.  Switching the name to "bogus.invalid" results in the 
> expected behavior, which depends on an UnknownHostException.
>            Reporter: Steve Vaughan
>            Assignee: Steve Vaughan
>            Priority: Minor
>
> Tests that want to use an unresolvable address may actually resolve in some 
> environments.  Replacing host names like "bogus" with a IETF RFC 2606 domain 
> name avoids the issue.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to