You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <de...@db.apache.org> on 2006/09/12 13:29:23 UTC

[jira] Updated: (DERBY-1326) Network server may abandon sessions when Derby system is shutdown and this causes intermittent hangs in the client

     [ http://issues.apache.org/jira/browse/DERBY-1326?page=all ]

Knut Anders Hatlen updated DERBY-1326:
--------------------------------------

    Attachment: Restart.java

Attaching a repro (Restart.java) which always causes a hang in my environment. What it does is:

  1) Open 20 connections to the server.
  2) Close all connections.
  3) Shut down the engine (will make the server restart).
  4) Open and close a connection 20 times (usually hangs on the second connection).

After (3), the server has 20 threads sleeping in runQueue.wait(). All of these are closed, but when they start waking up in (4), they don't notice that they have been closed until they have picked up a session from the run queue. That session will be abandoned, and the client hangs.

> 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