Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 505 invoked from network); 20 Jul 2010 16:58:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 16:58:15 -0000 Received: (qmail 55324 invoked by uid 500); 20 Jul 2010 16:58:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 55221 invoked by uid 500); 20 Jul 2010 16:58:15 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 55214 invoked by uid 99); 20 Jul 2010 16:58:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 16:58:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 16:58:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6KGvoDc000396 for ; Tue, 20 Jul 2010 16:57:50 GMT Message-ID: <1400392.477871279645070190.JavaMail.jira@thor> Date: Tue, 20 Jul 2010 12:57:50 -0400 (EDT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4601) Shutting down just a single database should log a different message than shutting down the system In-Reply-To: <468721431.511081269617667240.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor updated DERBY-4601: ----------------------------------- Attachment: DERBY4601_patch1_diff.txt DERBY4601_stat1_diff.txt Attaching a patch which will log the Engine shutdown message in derby.log. The existing message logging for each individual connection close which happen because of engine shutdown will still be logged but they will now print the name of the database being shutdown. The existing regression tests ran fine. If there is no objection to this patch, I will commit it by Wednesday morning. > Shutting down just a single database should log a different message than shutting down the system > ------------------------------------------------------------------------------------------------- > > Key: DERBY-4601 > URL: https://issues.apache.org/jira/browse/DERBY-4601 > Project: Derby > Issue Type: Bug > Components: Services > Affects Versions: 10.5.3.0 > Reporter: Kathey Marsden > Assignee: A.S.Thiwanka Somasiri > Priority: Minor > Attachments: derby-4601.diff, DERBY4601_patch1_diff.txt, DERBY4601_stat1_diff.txt > > > When shutting down just a single database and not the Derby system, the log should print a message that just that database was shutdown as I believe Derby is still loaded. > e.g. > ij version 10.6 > ij> run 'testMessages.sql'; > ij> connect 'jdbc:derby:wombat'; > ij> connect 'jdbc:derby:wombat2'; > ij(CONNECTION1)> connect 'jdbc:derby:wombat2;shutdown=true'; > ERROR 08006: Database 'wombat2' shutdown. > ij(CONNECTION1)> connect 'jdbc:derby:;shutdown=true'; > ERROR XJ015: Derby system shutdown. > yields the following log: > 2010-03-26 15:27:16.375 GMT: > Booting Derby version The Apache Software Foundation - Apache Derby - 10.6.0.0 alpha - (927879M): instance a816c00e-0127-9b15-988d-0000002083e0 > on database directory C:\kmarsden\repro\DERBY-4588\wombat with class loader sun.misc.Launcher$AppClassLoader@42c042c0 > Database Class Loader started - derby.database.classpath='' > ---------------------------------------------------------------- > 2010-03-26 15:27:16.921 GMT: > Booting Derby version The Apache Software Foundation - Apache Derby - 10.6.0.0 alpha - (927879M): instance 601a400f-0127-9b15-988d-0000002083e0 > on database directory C:\kmarsden\repro\DERBY-4588\wombat2 with class loader sun.misc.Launcher$AppClassLoader@42c042c0 > Database Class Loader started - derby.database.classpath='' > 2010-03-26 15:27:17.171 GMT: > Shutting down instance 601a400f-0127-9b15-988d-0000002083e0 with class loader sun.misc.Launcher$AppClassLoader@42c042c0 > ---------------------------------------------------------------- > 2010-03-26 15:27:17.218 GMT: > Shutting down instance a816c00e-0127-9b15-988d-0000002083e0 with class loader sun.misc.Launcher$AppClassLoader@42c042c0 > ---------------------------------------------------------------- > The first shutdown should say that just the database wombat2 was shutdown, not the entire system. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.