RFR: 8004317 TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported

Jim Gish jim.gish at oracle.com
Tue Dec 4 21:10:30 UTC 2012


The initial code was a bit strange in that it started out with an int 
set to the min "reserved" port number.  I chose an Integer so I could 
start out with null rather than a magic number.

Jim

P.S. working on adding nestat -a output per Alan's suggestion.

On 12/04/2012 04:07 PM, Darryl Mocek wrote:
> Hi Jim,
>
>    changes look OK to me, although I'm curious why you chose to use an 
> Integer instead of an int.
>
> Darryl
>
> On 12/04/2012 12:03 PM, Jim Gish wrote:
>> Please review 
>> http://cr.openjdk.java.net/~jgish/Bug8004317-TestLibrary-getUnusedRandomPort-Failure/ 
>> <http://cr.openjdk.java.net/%7Ejgish/Bug8004317-TestLibrary-getUnusedRandomPort-Failure/> 
>>
>>
>> We're getting intermittent failures on a number of RMI tests 
>> attempting to get an unused ephemeral port.  This is a temporary 
>> change to print a stack trace until we can figure what's going on. 
>> For some reason the test framework isn't surfacing the nested 
>> exception.  (There probably should be a separate bug for that, but my 
>> first priority here is to fix the intermittent test failures.)
>>
>> Thanks,
>>     Jim
>>
>

-- 
Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304
Oracle Java Platform Group | Core Libraries Team
35 Network Drive
Burlington, MA 01803
jim.gish at oracle.com




More information about the core-libs-dev mailing list