db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Pendleton (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1326) Network server may abandon sessions when Derby system is shutdown and this causes intermittent hangs in the client
Date Sun, 04 Jun 2006 17:13:31 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1326?page=all ]

Bryan Pendleton updated DERBY-1326:
-----------------------------------

    Attachment: withNewThreadAndNoShutdownOfCurrentSession.diff

This latest attachment, 'withNewThreadAndNoShutdownOfCurrentSession.diff',
contains the following changes relative to the previous patch proposal
(sessionMgmt1_and_nosessionsforclosedthreads.diff):

1) runQueueAdd now calls runQueue.notifyAll() rather than runQueue.notify()
2) startNetworkServer now primes the thread pool by starting the first
DRDAConnThread right away, rather than waiting for the first Session to come
in. To make this work, I had to make a few small tweaks to DRDAConnThread
initialization so that it would defer its initialization until it had its first Session.
3) startNetworkServer now takes the calling Session as an argument. In the
initial server start case this is null, but if a restart is triggered by a shutdown
exception, the caller passes its Session in. startNetworkServer uses this to
avoid closing the Session which is triggering the restart, so it can stay open
long enough to return the shutdown exception back to the client.
4) The client-masters for checkDataSource and checkDataSource30 are
modified to add the shutdown exception. This modification of the master file
goes hand-in-hand with the modification of the test program to re-enable
the server shutdown/restart during the test.

Please take a look at this latest proposal and let me know your comments.


> 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
>         Type: Bug

>   Components: Network Server
>     Reporter: Deepa Remesh
>     Assignee: Bryan Pendleton
>  Attachments: repro1326.java, sessionMgmt1.diff, sessionMgmt1_and_nosessionsforclosedthreads.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


Mime
View raw message