JDK-8027309 : TEST_BUG: com/sun/corba/transport/KeepAliveSockets.java fails on Windows
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2013-10-25
  • Updated: 2015-06-15
  • Resolved: 2015-06-12
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 6
6u105 b01Fixed
Related Reports
Relates :  
Description
Testsuite name: Regression
Test name: com/sun/corba/transport/KeepAliveSockets.java
JDK tested: 6u71 b04
OS tested: Windows 7 x64

Test fails since it was pushed to ws (6u71 b01). Seems it is a test bug.

LOG:

#section:main
----------messages:(3/130)----------
command: main KeepAliveSockets
reason: User specified action: run main/othervm KeepAliveSockets 
elapsed time (seconds): 0.258
----------System.out:(1/84)----------
Received factory socketSocket[addr=localhost/127.0.0.1,port=64470,localport=64471]
----------System.err:(13/809)----------
java.lang.RuntimeException: KeepAlive value not honoured in CORBA socket
	at KeepAliveSockets.main(KeepAliveSockets.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:680)

JavaTest Message: Test threw exception: java.lang.RuntimeException: KeepAlive value not honoured in CORBA socket
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: KeepAlive value not honoured in CORBA socket
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: KeepAlive value not honoured in CORBA socket


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: KeepAlive value not honoured in CORBA socket
Comments
no cycles to investigate the keepAlive differences seen at the Socket level. Since the original corba change was generic, I'm going to allow pass on windows platforms.
12-06-2015

Been digging into this some more. It turns out that we've a behavioural difference between JDK 6 and JDK 7 around sockets returned from SocketChannel. JDK 6 has keepalive = true while JDK 7 = false (windows behaviour) testcase : import java.lang.*; import java.net.InetSocketAddress; import java.net.Socket; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.util.*; public class TestSocket { public static void main(String[] args) throws Exception { ServerSocketChannel ssc = ServerSocketChannel.open(); ssc.socket().bind(new InetSocketAddress(0)); InetSocketAddress isa = new InetSocketAddress("localhost", ssc.socket().getLocalPort()); SocketChannel sc = SocketChannel.open(isa); Socket s = sc.socket(); //Socket s = new Socket (isa.getHostName(), isa.getPort()); System.out.println("Received socket" + s); System.out.println("keepAlive " + s.getKeepAlive()); } } results : C:\Users\sc87771>C:\jdk1.6.0_33\bin\java -showversion TestSocket java version "1.6.0_33" Java(TM) SE Runtime Environment (build 1.6.0_33-b03) Java HotSpot(TM) Client VM (build 20.8-b03, mixed mode) Received socketSocket[addr=localhost/127.0.0.1,port=51991,localport=51992] keepAlive true C:\Users\sc87771>java -showversion TestSocket java version "1.7.0_21" Java(TM) SE Runtime Environment (build 1.7.0_21-b11) Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode) Received socketSocket[addr=localhost/127.0.0.1,port=51993,localport=51994] keepAlive false === will investigate further.
12-11-2013

Test fails against JDK 6u71 b05 on Windows 7.
31-10-2013

There's something strange going on with 6u71 b01/b03. Original CORBA fix was not in 6u71 b01. Why are you testing it there ? https://bugs.openjdk.java.net/browse/JDK-8017195 It should be in 6u71 b03. I'm seeing similar issues from another QA bug : https://bugs.openjdk.java.net/browse/JDK-8027311
29-10-2013

I've added the 8-na label to this bug as we have not have any sightings of this test failure in 8.
28-10-2013