United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7081476 test/java/net/InetSocketAddress/B6469803.java failing intermittently
JDK-7081476 : test/java/net/InetSocketAddress/B6469803.java failing intermittently

Details
Type:
Bug
Submit Date:
2011-08-20
Status:
Closed
Updated Date:
2013-09-04
Project Name:
JDK
Resolved Date:
2012-08-07
Component:
core-libs
OS:
generic
Sub-Component:
java.net
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
This test fails intermittently on marino.ie.oracle.com and should be investigated.

#Test Results (version 2)
#Sat Aug 20 18:24:18 BST 2011
#checksum:672c6c088cd5949d
#-----testdescription-----
$file=/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/java/net/InetSocketAddress/B6469803.java
$root=/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test
keywords=bug6469803
run=ASSUMED_ACTION main B6469803\n
source=B6469803.java
title=Socket creation on Windows takes a long time if web proxy does not have a DNS

#-----environment-----

#-----testresult-----
description=file:/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/java/net/InetSocketAddress/B6469803.java
elapsed=16 0:00:00.016
end=Sat Aug 20 18:24:18 BST 2011
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: getHostString() returned the wrong string: LocalHost
hostname=marino.ie.oracle.com
javatestOS=SunOS 5.10 (x86)
javatestVersion=4.1.4
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build main
start=Sat Aug 20 18:24:18 BST 2011
test=java/net/InetSocketAddress/B6469803.java
work=/export/Scratch/ab23780/jtreg-testing/JTwork/java/net/InetSocketAddress

#section:script_messages
----------messages:(4/207)----------
JDK under test: (/export/Scratch/alanb/jdk1.8)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201108181350.ab23780.tl-b00)
OpenJDK Server VM (build 22.0-b01, mixed mode)

#section:build
----------messages:(3/93)----------
command: build B6469803
reason: Named class compiled on demand
elapsed time (seconds): 0.009
result: Passed. All files up to date

#section:main
----------messages:(3/115)----------
command: main B6469803
reason: Assumed action based on file name: run main B6469803 
elapsed time (seconds): 0.003
----------System.err:(12/634)----------
java.lang.RuntimeException: getHostString() returned the wrong string: LocalHost
	at B6469803.main(B6469803.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:474)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: getHostString() returned the wrong string: LocalHost


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: getHostString() returned the wrong string: LocalHost

                                    

Comments
EVALUATION

The issue seems to that another test (ReuseBuf) is polluating the cache by calling InetAddress.getByName("LocalHost"), this causes subsequent lookups of localhost to return "LocalHost". Thanks to Eric and Chris for tracking this down.
                                     
2012-07-17
EVALUATION

Changeset: 2c2e4ecc8f7e
Author:    chegar
Date:      2012-07-19 18:19 +0100
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2c2e4ecc8f7e

7081476: test/java/net/InetSocketAddress/B6469803.java failing intermittently
Reviewed-by: chegar
Contributed-by: Eric Wang <###@###.###>

! test/ProblemList.txt
! test/java/net/DatagramPacket/ReuseBuf.java
                                     
2012-07-20
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/jdk/rev/2c2e4ecc8f7e
                                     
2012-08-14
Test Passed in recent 2 week's nightly, close as Verified
                                     
2012-10-19



Hardware and Software, Engineered to Work Together