Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 24327 invoked from network); 2 Mar 2011 12:43:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 12:43:08 -0000 Received: (qmail 17236 invoked by uid 500); 2 Mar 2011 12:43:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 16984 invoked by uid 500); 2 Mar 2011 12:43:07 -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 16971 invoked by uid 99); 2 Mar 2011 12:43:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 12:43:06 +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; Wed, 02 Mar 2011 12:43:04 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2D0E94B566 for ; Wed, 2 Mar 2011 12:42:43 +0000 (UTC) Date: Wed, 2 Mar 2011 12:42:43 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <303196533.7780.1299069763181.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 ] Knut Anders Hatlen updated DERBY-5082: -------------------------------------- Attachment: test.sql Attaching repro script. Here's what I see when running it: $ java org.apache.derby.tools.ij test.sql ij version 10.8 ij> connect 'jdbc:derby:db;create=true'; ij> create table t(x int); 0 rows inserted/updated/deleted (...) ij> insert into t select * from t; 22528 rows inserted/updated/deleted ij> select count(*) from t where x > 50; 1 ----------- 4096 1 row selected ij> Exception in thread "main" org.apache.derby.iapi.error.ShutdownException: at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:464) at org.apache.derby.iapi.services.context.ContextManager.popContext(ContextManager.java:202) at org.apache.derby.iapi.services.context.ContextImpl.popMe(ContextImpl.java:81) at org.apache.derby.impl.store.raw.xact.Xact.close(Xact.java:1169) at org.apache.derby.impl.store.raw.xact.Xact.destroy(Xact.java:1110) at org.apache.derby.impl.store.access.RAMTransaction.destroy(RAMTransaction.java:2030) at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.stop(IndexStatisticsDaemonImpl.java:866) at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.stop(DataDictionaryImpl.java:974) at org.apache.derby.impl.services.monitor.TopService.stop(TopService.java:443) at org.apache.derby.impl.services.monitor.TopService.shutdown(TopService.java:394) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(BaseMonitor.java:229) at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(BaseMonitor.java:199) at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:241) at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:144) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) at org.apache.derby.impl.tools.ij.utilMain.cleanupGo(utilMain.java:429) at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:262) at org.apache.derby.impl.tools.ij.Main.go(Main.java:229) at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:184) at org.apache.derby.impl.tools.ij.Main.main(Main.java:75) at org.apache.derby.tools.ij.main(ij.java:59) > 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: 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