[ http://issues.apache.org/jira/browse/DERBY-803?page=comments#action_12433150 ] Knut Anders Hatlen commented on DERBY-803: ------------------------------------------
Couldn't we just wrap DRDAConnThread.run()'s call to closeSession() in a synchronized block (synchronizing on NetworkServerControlImpl.getShutdownSync()) and only call it if NetworkServerControlImpl.getShutdown() returns false? The server shutdown will take care of closing the sessions anyway. > derbynet/DerbyNetAutoStart.java test fails intermittently with > org.apache.derby.iapi.services.context.ShutdownException > ----------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-803 > URL: http://issues.apache.org/jira/browse/DERBY-803 > Project: Derby > Issue Type: Test > Components: Network Server, Regression Test Failure > Affects Versions: 10.2.1.0 > Reporter: Kathey Marsden > Attachments: suggestion-803.diff, suggestion-803.stat > > > DerbyNetAutoStart fails intermittently with the following diff: > This issue is likely related to DERBY-1020 > ********* Diff file > derbyall/derbynetmats/DerbyNet/derbynetmats/DerbyNetAutoStart.diff > *** Start: DerbyNetAutoStart jdk1.4.2 DerbyNet derbynetmats:derbynetmats > 2006-01-05 23:39:40 *** > 1a2,3 > > org.apache.derby.iapi.services.context.ShutdownException: > > at org.apache.derby.impl.drda.Session.close(Unknown > > Source)agentThread[DRDAConnThread_3,5,derby.daemons] > Test Failed. > *** End: DerbyNetAutoStart jdk1.4.2 DerbyNet derbynetmats:derbynetmats > 2006-01-05 23:41:10 *** -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
