Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 19880 invoked from network); 3 Mar 2011 00:10:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Mar 2011 00:10:01 -0000 Received: (qmail 83805 invoked by uid 500); 3 Mar 2011 00:09:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83772 invoked by uid 500); 3 Mar 2011 00:09:59 -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 83765 invoked by uid 99); 3 Mar 2011 00:09:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 00:09:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 00:09:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B864F4C793 for ; Thu, 3 Mar 2011 00:09:37 +0000 (UTC) Date: Thu, 3 Mar 2011 00:09:37 +0000 (UTC) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Message-ID: <2012722784.9547.1299110977751.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <196454046.7778.1299069637041.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (DERBY-5082) ShutdownException in ContextManager.checkInterrupt() during shutdown 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-5082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-5082: ----------------------------------- Attachment: derby-5082-1a-fix.diff Attached patch 1a, which fixes the bug with a ShutdownException raised in ContextManager by avoiding to destroy the tx if the database is shut down. Also, if the transaction is being destroyed, catch ShutdownException in case someone shuts down the database under our feet. This is already done in the main processing loop if the worker thread detects that the daemon has been stopped. Since the patch is so small and isolated, I committed it right away with revision 1076462. The coming patch for DERBY-5088 will be larger, so I'll need to run more tests before committing. > ShutdownException in ContextManager.checkInterrupt() during shutdown > -------------------------------------------------------------------- > > Key: DERBY-5082 > URL: https://issues.apache.org/jira/browse/DERBY-5082 > Project: Derby > Issue Type: Bug > Components: Services > Affects Versions: 10.8.0.0 > Reporter: Knut Anders Hatlen > Attachments: derby-5082-1a-fix.diff, test.sql > > > When running the attached repro script, I often (but not always) see a ShutdownException in ContextManager.checkInterrupt() when ij exits and shuts down the Derby engine. ij expects an exception here, but it expects an SQLException, not a ShutdownException. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira