[ http://issues.apache.org/jira/browse/DERBY-1326?page=comments#action_12434481 ] Bryan Pendleton commented on DERBY-1326: ----------------------------------------
> For the latter (threads with sessions), it would make sense to notify > them about the shutdown so they could drop their invalid sessions > earlier, but that would be an optimization and not a correctness > issue, I think. I think there could be a correctness issue here, actually. One of my worries had to do with DERBY-51, and whether there was any implicit or explicit contract about how Network Server shutdown and engine/database shutdown were linked. That is, it seems to me that a user might expect that if they shut down the Network Server, that when that call returned to them, their application could assume that the database was also shut down as of that point. NOTE: I'm not saying that this is how things currently work; I'm just saying that it seems to me that users might make that assumption and we haven't been explicit about it one way or another. But that's DERBY-51, properly, not this bug. Still, if we make a change for this bug that forces our hand w.r.t. DERBY-51, we should make it clear that we're doing so intentionally so that we don't later reverse that change and re-introduce this problem. > 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
