[
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