JDK-6961630 : TEST_BUG: Several SocketChannel and Selector tests can fail with "address already in use"
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Affected Version: 7
  • OS: generic
  • CPU: generic
  • Submit Date: 2010-06-16
  • Updated Date: 2011-05-18
  • Resolved Date: 2011-05-18
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7 b100Fixed
Description
The following test use a fixed port and fail periodically in JPRT with "address already in use":

test/java/nio/channels/Selector/CloseThenRegister.java
test/java/nio/channels/Selector/ReadAfterConnect.java
test/java/nio/channels/Selector/SelectAfterRead.java
test/java/nio/channels/Selector/SelectWrite.java
test/java/nio/channels/SocketChannel/VectorIO.java
test/java/nio/channels/SocketChannel/Write.java

Comments
EVALUATION Yep, need to change these tests to not use fixed ports.
2010-06-16