RFR 8080138: sun/management/jmxremote/startstop/JMXStartStopTest.java failed with java.lang.Error intermittently
Jaroslav Bachorik
jaroslav.bachorik at oracle.com
Thu Jun 18 11:01:06 UTC 2015
Please, review the following test change
Issue : https://bugs.openjdk.java.net/browse/JDK-8080138
Webrev: http://cr.openjdk.java.net/~jbachorik/8080138/webrev.00
The test is using DCMD to turn on the management agent. It seems that
under certain conditions the time needed to actually startup the agent
the RMI connector may be longer than expected and the test will try to
connect to the target process while the initialization is still in
progress. This will lead to intermittent failures with EOFException as
the cause.
The patch adds a retry logic that will keep on trying to connect to the
target process for a certain amount of time (adjusted by the test suite
timeout factor) and fails only if the target process is not responding
after this time has elapsed.
Thanks,
-JB-
More information about the serviceability-dev
mailing list