JDK-6952814 : sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/InterruptedIO.java failing in PIT
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-05-14
  • Updated: 2014-10-08
  • Resolved: 2012-09-19
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 b01Fixed
Description
We've seen this failing in PIT from time to time.  Should eventually be looked at:

----------messages:(3/127)----------
command: main InterruptedIO
reason: Assumed action based on file name: run main InterruptedIO
elapsed time (seconds): 120.237
----------System.out:(14/518)----------
Test valid only on SunOS.
=========================
It was determined that Thread.interrupt() could
not be reliably return InterruptedIOException
on non-Solaris implementations.  Thread.interrupt()
API was updated in merlin (JDK 1.4) to reflect this.

Server - Will accept connections on port 36808
Client - Connected to: localhost:36808
Client - Doing SSL Handshake...
Client - Done with SSL Handshake
Main - Pausing for 5 seconds...
Client - Reading from input stream ...
Main - Interrupting client reader thread
----------System.err:(0/0)----------
result: Error. Program `/net/jano1.sfbay/export1/jcg/ws-depot/7/tl/build-archive
/latest.tl-pit/solaris_sparc/bin/java' interrupted! (timed out?)

Comments
log: ----------System.out:(14/518)---------- Test valid only on SunOS. ========================= It was determined that Thread.interrupt() could not be reliably return InterruptedIOException on non-Solaris implementations. Thread.interrupt() API was updated in merlin (JDK 1.4) to reflect this. Server - Will accept connections on port 62966 Client - Connected to: localhost:62966 Client - Doing SSL Handshake... Client - Done with SSL Handshake Main - Pausing for 5 seconds... Client - Reading from input stream ... Main - Interrupting client reader thread ----------System.err:(0/0)---------- result: Error. Program `/export/jdk/jdk1.7.0_10b17/bin/java' interrupted! (timed out?) test result: Error. test was interrupted! (timeout?)
27-11-2012

EVALUATION This test relies on legacy interruptible I/O that is disabled in jdk7. It can be re-enabled by running with -XX:+UseVMInterruptibleIO but it will break again in jdk8 once interruptible I/O is completely removed from the platform. A better choice would be to remove the test.
22-06-2011