[ http://issues.apache.org/jira/browse/DERBY-1326?page=comments#action_12434547 ] Deepa Remesh commented on DERBY-1326: -------------------------------------
Thanks Knut for working on this. Some questions/thoughts: * I think it is okay to re-use free/idle threads without closing them. It may not be okay to re-use active threads without closing/poisoning them. If we do this, wouldn't we end up with threads getting invalid/closed sessions to work on? * Isn't this a possible scenario which can cause a hang in a client: When restart is in progress, a new client session comes in and gets added to runQueue. After the session is added, the restart code closes the new session or clears the runQueue. So the server just discards the new session and the client keeps waiting. > Network server may abandon sessions when Derby system is shutdown and this > causes intermittent hangs in the client > ------------------------------------------------------------------------------------------------------------------ > > Key: DERBY-1326 > URL: http://issues.apache.org/jira/browse/DERBY-1326 > Project: Derby > Issue Type: Bug > Components: Network Server > Reporter: Deepa Remesh > Assigned To: Knut Anders Hatlen > Attachments: repro1326.java, resolve_DRDConnThread_conflict.diff, > Restart.java, sessionMgmt1.diff, > sessionMgmt1_and_nosessionsforclosedthreads.diff, > unify_NSImpl_instances.diff, withNewThreadAndNoShutdownOfCurrentSession.diff > > > This issue was found when working on DERBY-1219. More details can be found in > the comments at http://issues.apache.org/jira/browse/DERBY-1219 -- 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
