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 8EE4298E6 for ; Thu, 26 Jul 2012 13:36:25 +0000 (UTC) Received: (qmail 49678 invoked by uid 500); 26 Jul 2012 13:27:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 88296 invoked by uid 500); 26 Jul 2012 13:25:52 -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 73749 invoked by uid 99); 26 Jul 2012 08:49:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 08:49:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id DC918142838 for ; Thu, 26 Jul 2012 08:49:34 +0000 (UTC) Date: Thu, 26 Jul 2012 08:49:34 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <1468529006.105243.1343292574905.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1070311175.101627.1343231975031.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (DERBY-5881) Limitation: Record of a btree secondary index cannot be updated or inserted due to lack of space on the page. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13422965#comment-13422965 ] Knut Anders Hatlen commented on DERBY-5881: ------------------------------------------- For those who don't monitor the derby-dev mailing list, here's a link to Mike's response: http://mail-archives.apache.org/mod_mbox/db-derby-dev/201207.mbox/%3C50104545.5080802%40sbcglobal.net%3E > Limitation: Record of a btree secondary index cannot be updated or inserted due to lack of space on the page. > ------------------------------------------------------------------------------------------------------------- > > Key: DERBY-5881 > URL: https://issues.apache.org/jira/browse/DERBY-5881 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.8.2.2, 10.9.1.0 > Environment: Red Hat Enterprise Linux Server release 6.1 (Santiago) -x86_64 > and > OpenSuse 11.3 -x86_64 > Reporter: Tony Brusseau > Priority: Blocker > > I'm trying to load a large database. After about 18 million inserts I always get the following error: > Exception: java.sql.BatchUpdateException: Limitation: Record of a btree secondary index cannot be updated or inserted due to lack of space on the page. Use the parameters derby.storage.pageSize and/or derby.storage.pageReservedSpace to work around this limitation. > Error Code: 20000 > I'm already using the maximum pageSize as stated in the documentation (32768) and I've bumped up the reserved space to 25%. I've also gotten rid of every non-essential index for loading so this is probably related to a primary key index (I had to leave most of them around). Our loading process is very non-trivial and batched so I'm not even sure which insert/index is causing the problem. > Problems: > 1. The error message doesn't give any information about which tables/columns/indexes are causing this problem so I have no way of knowing if i can work around this problem somehow. > 2.The database shouldn't die saying to adjust some magic numbers with no guidance on how to adjust them and by how much. Even if I do adjust them, what is to guarantee I won't get the same error at a later date...maybe even sometime during production which would be extremely bad. I believe an automated correction to this limitation needs to be created. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira