RFR: 8257884: Re-enable sun/security/ssl/SSLSocketImpl/SSLSocketLeak.java as automatic test

Xue-Lei Andrew Fan xuelei at openjdk.java.net
Tue Dec 8 22:37:38 UTC 2020


On Tue, 8 Dec 2020 22:16:30 GMT, Christoph Langer <clanger at openjdk.org> wrote:

>> test/jdk/sun/security/ssl/SSLSocketImpl/SSLSocketLeak.java line 61:
>> 
>>> 59:         System.out.println("FDs in the end: " + fds_end);
>>> 60: 
>>> 61:         if ((fds_end - fds_start) > (NUM_TEST_SOCK / OPEN_HANDLE_GROWTH_THRESHOLD)) {
>> 
>> It looks like the test may still fail intermittently.  But let's do it for now and see if it is reliable to be an automation test case.
>
> The failing cases I've seen in SAP's infrastructure have all been on Windows and the number of handles was marginally above the 10 percent threshold. Do you have seen otherwise in Oracle's tests? The test prints out the handle count before and after...

The number may help for general cases, but intermittent failure could happen if the test could fail in theory.  I did not dig into Oracle testing result.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1686



More information about the security-dev mailing list