[9] RFR: 8015595: Test sun/security/krb5/auto/Unreachable.java fails with Timeout error

Sibabrata Sahoo sibabrata.sahoo at oracle.com
Fri Aug 26 10:39:20 UTC 2016


Hi,

 

Here is the latest webrev: http://cr.openjdk.java.net/~ssahoo/8015595/webrev.00/

 

I have updated the test with these additional support,

1)      Verifying, if the port is reachable or PortUnreachableException is supported by the platform, otherwise the Test will terminate itself with warning.

2)      Removed the test from ProblemList.txt for MAC OS because of #1.

3)      Uses only one KDC port in the configuration file.

4)      Removed static "unreachable.krb5.conf" as the Test creates the file during runtime.

 

Thanks,

Siba

 

From: Sibabrata Sahoo 
Sent: Wednesday, August 24, 2016 9:46 PM
To: Weijun Wang; security-dev at openjdk.java.net
Subject: [9] RFR: 8015595: Test sun/security/krb5/auto/Unreachable.java fails with Timeout error

 

Hi,

 

Please review the patch for "sun/security/krb5/auto/Unreachable.java fails with Timeout error"

 

JBS: https://bugs.openjdk.java.net/browse/JDK-8015595

Webrev: http://cr.openjdk.java.net/~ssahoo/8015595/webrev.00/

 

Description:

When a KDC port is unreachable, Kerberos login module depends on PortUnreachableException to exit immediately. But as per JavaDoc for receive() in "java.net.DatagramSocket", the PortUnreachableException is not guaranteed. In such case the Login module waits for 90 second by default. But the JTREG Test timeout has been set for 10 second and because of that the Test gets timeout.

 

Since the "intermittent" failure is unavoidable due to  "PortUnreachableException is not guaranteed", I have provided a fix to print a warning message for such cases instead of making the Test timeout.

 

Thanks,

Siba

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/security-dev/attachments/20160826/33c98fc3/attachment.htm>


More information about the security-dev mailing list