Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CFE07DF4 for ; Fri, 2 Sep 2011 12:08:45 +0000 (UTC) Received: (qmail 47428 invoked by uid 500); 2 Sep 2011 12:08:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 47208 invoked by uid 500); 2 Sep 2011 12:08:39 -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 47179 invoked by uid 99); 2 Sep 2011 12:08:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 12:08:35 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Fri, 02 Sep 2011 12:08:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2CC2537FE0 for ; Fri, 2 Sep 2011 12:08:10 +0000 (UTC) Date: Fri, 2 Sep 2011 12:08:10 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <1231007251.10244.1314965290179.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-4275) Query executions fail when compressing a table using SYSCS_UTIL.SYSCS_COMPRESS_TABLE 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-4275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095934#comment-13095934 ] Knut Anders Hatlen commented on DERBY-4275: ------------------------------------------- Merged npe.diff to 10.8 and committed revision 1164499. > Query executions fail when compressing a table using SYSCS_UTIL.SYSCS_COMPRESS_TABLE > ------------------------------------------------------------------------------------ > > Key: DERBY-4275 > URL: https://issues.apache.org/jira/browse/DERBY-4275 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.4.1.3 > Reporter: Sai Pullabhotla > Assignee: Knut Anders Hatlen > Labels: derby_triage10_5_2 > Fix For: 10.8.1.6, 10.9.0.0 > > Attachments: CompressDBTest1.java, CompressDBTest2.java, D4275.java, d4275-1a.diff, invalidate-after.diff, invalidation-during-compilation.diff, npe.diff > > > Query executions (SELECT and/or UPDATE) fail with serious exceptions while the table is being compressed using SYSCS_UTIL.SYSCS_COMPRESS_ TABLE. The compression eventually finishes normally, but the queries keep failing with the same error until the database is rebooted. More information about this can be found on the Derby mailing list at http://www.nabble.com/Issue-with-SYSCS_UTIL.SYSCS_COMPRESS_-TABLE-td23892893.html. The exception stacktrace is below: > Caused by: java.sql.SQLException: The conglomerate (71,409) requested does not exist. > at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeQuery(Unknown Source) > at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93) > ... 25 more > Caused by: ERROR XSAI2: The conglomerate (71,409) requested does not exist. > at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) > at org.apache.derby.impl.store.access.btree.index.B2IFactory.readConglomerate(Unknown Source) > at org.apache.derby.impl.store.access.RAMAccessManager.conglomCacheFind(Unknown Source) > at org.apache.derby.impl.store.access.RAMTransaction.findExistingConglomerate(Unknown Source) > at org.apache.derby.impl.store.access.RAMTransaction.openScan(Unknown Source) > at org.apache.derby.impl.store.access.BackingStoreHashTableFromScan.(Unknown Source) > at org.apache.derby.impl.store.access.RAMTransaction.createBackingStoreHashtableFromScan(Unknown Source) > at org.apache.derby.impl.sql.execute.HashScanResultSet.openCore(Unknown Source) > at org.apache.derby.impl.sql.execute.JoinResultSet.openRight(Unknown Source) > at org.apache.derby.impl.sql.execute.JoinResultSet.openCore(Unknown Source) > at org.apache.derby.impl.sql.execute.JoinResultSet.openCore(Unknown Source) > at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.openCore(Unknown Source) > at org.apache.derby.impl.sql.execute.UnionResultSet.getNextRowCore(Unknown Source) > at org.apache.derby.impl.sql.execute.SortResultSet.getRowFromResultSet(Unknown Source) > at org.apache.derby.impl.sql.execute.SortResultSet.getNextRowFromRS(Unknown Source) > at org.apache.derby.impl.sql.execute.SortResultSet.loadSorter(Unknown Source) > at org.apache.derby.impl.sql.execute.SortResultSet.openCore(Unknown Source) > at org.apache.derby.impl.sql.execute.SortResultSet.openCore(Unknown Source) > at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.open(Unknown Source) > at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira