Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 54501 invoked from network); 26 Apr 2007 10:52:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2007 10:52:39 -0000 Received: (qmail 30974 invoked by uid 500); 26 Apr 2007 10:52:44 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 30659 invoked by uid 500); 26 Apr 2007 10:52:43 -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 30279 invoked by uid 99); 26 Apr 2007 10:52:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 03:52:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 03:52:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8D3A9714079 for ; Thu, 26 Apr 2007 03:52:15 -0700 (PDT) Message-ID: <14992605.1177584735575.JavaMail.jira@brutus> Date: Thu, 26 Apr 2007 03:52:15 -0700 (PDT) From: "Kurt Huwig (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2549) ArrayIndexOutOfBoundsException in SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE In-Reply-To: <3641992.1176708495288.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491961 ] Kurt Huwig commented on DERBY-2549: ----------------------------------- My patch does not compress the full database. I will limit the case when there are 111 compressable elements to 100, so that they fit into the result array. But after that, the remaining 11 elements are still not compressed. If I run INPLACE_COMPRESS again, my debugging output shows me that it compressed just these 11 elements. A third or more runs will yield no further changes to the database. Therefore I guess that the limitation to 100 is somehow arbitrary and does not apply to my specifiy database. Comparing to DERBY-606, the size of my database is 159MB vs several GB and it contains only 301.451 elements vs 60 million. > ArrayIndexOutOfBoundsException in SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE > ------------------------------------------------------------------------- > > Key: DERBY-2549 > URL: https://issues.apache.org/jira/browse/DERBY-2549 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.2.2.0 > Environment: Linux 2.6.x, JRE 1.5.0_b7 > Reporter: Kurt Huwig > Attachments: 2549-histogram.png, derby-2549-v1.diff, DerbyDiskSpaceDiag.java > > > I am doing this in my code: > CALL SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE('SPONTS','" + "journal".toUpperCase(Locale.US) + "',1,1,1)") > ("journal" is actually a String-variable, but I replaced it here for easier understanding) > Sometime - not always - I am getting this exception: > java.sql.SQLException: The exception 'java.lang.ArrayIndexOutOfBoundsException: 100' was thrown while evaluating an expression. SQLSTATE: XJ001: > Java exception: '100: java.lang.ArrayIndexOutOfBoundsException'. > at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(Unknown Source) > at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source) > at org.apache.derby.client.am.Statement.execute(Unknown Source) > [...] > Caused by: org.apache.derby.client.am.SqlException: The exception 'java.lang.ArrayIndexOutOfBoundsException: 100' was thrown while evaluating an expression. > SQLSTATE: XJ001: Java exception: '100: java.lang.ArrayIndexOutOfBoundsException'. > at org.apache.derby.client.am.Statement.completeExecute(Unknown Source) > at org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknown Source) > at org.apache.derby.client.net.NetStatementReply.readExecuteCall(Unknown Source) > at org.apache.derby.client.net.StatementReply.readExecuteCall(Unknown Source) > at org.apache.derby.client.net.NetStatement.readExecuteCall_(Unknown Source) > at org.apache.derby.client.am.Statement.readExecuteCall(Unknown Source) > at org.apache.derby.client.am.Statement.flowExecute(Unknown Source) > at org.apache.derby.client.am.Statement.executeX(Unknown Source) > ... 12 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.