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] Commented: (DERBY-1274) Network Server does not shutdown the databases it has booted when started and shutdown from the command line
Date Tue, 11 Jul 2006 05:37:31 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1274?page=comments#action_12420220 ] 

Bryan Pendleton commented on DERBY-1274:
----------------------------------------

I like the v2 patch; I think it is simple and clean, and a definite improvement to
the existing code. Thanks!

It seems like it would be nice to have some tests to go with the patch; do you see
any simple way to augment some of our existing tests so that:
 - we have a test that shows that if you start and stop the NS programmatically,
   it does not shut down the database
 - we have a test that shows that if you start the NS from the command line,
   then stop it, it does shut down the database

I think it would be sufficient to test for the presence/absence of the db.lck
file as proof of whether or not we shut down the database.


> Network Server does not shutdown the databases it has booted when started and shutdown
from the command line
> ------------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-1274
>          URL: http://issues.apache.org/jira/browse/DERBY-1274
>      Project: Derby
>         Type: Bug

>   Components: Network Server
>     Versions: 10.2.0.0, 10.1.2.3
>     Reporter: Kathey Marsden
>     Assignee: Fernanda Pizzorno
>  Attachments: derby-1274.diff, derby-1274.stat, derby-1274v2.diff
>
> If network server is started  and shutdown from the comand line t does not shutdown the
database.   This can is evidenced by the fact that the db.lck file remains after  the following
steps.
> java org.apache.derby.drda.NetworkServerControl start &
> <some database access>
> java org.apache.derby.drda.NetworkServerControl shutdown
>  There is much discussion about the correct behavior of NetworkServer in this regard
related to embedded server scenarios in DERBY-51, but it seems clear in this  case the databases
should be shutdown.
>  
>  

-- 
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