JDK-7081476 : test/java/net/InetSocketAddress/B6469803.java failing intermittently
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-08-20
  • Updated: 2013-09-04
  • Resolved: 2012-08-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b51Fixed
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
Test Passed in recent 2 week's nightly, close as Verified
19-10-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/jdk/rev/2c2e4ecc8f7e
14-08-2012

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
20-07-2012

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.
17-07-2012