[PATCH] JDK-7146162: javax/management/remote/mandatory/connection/BrokenConnectionTest.java failing intermittently
Jaroslav Bachorik
jaroslav.bachorik at oracle.com
Mon Oct 29 07:15:21 PDT 2012
I am looking for a sponsor and reviewers.
The webrev is available at
http://cr.openjdk.java.net/~jbachorik/JDK-7146162/webrev.03
As explained in the issue the failure is caused by the RMI connection
heart-beat thread racing against the thread executing the MBean
operation and encountering the IOException. The heart beat thread sets
the the admin state to "terminated" but does not send the failure
notifications. On the other side the operation thread determines the
state to be already terminated and skips the notifications as well.
The fix adds the call to handle an ioexception, including sending the
failure notifications, to the hear-beat connection failure handler. Also
it widens the synchronized block since the whole code block checking for
the connection failure and recovering must be run atomically,
Thanks,
-JB-
More information about the serviceability-dev
mailing list