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 A47A36E1D for ; Sat, 18 Jun 2011 17:20:08 +0000 (UTC) Received: (qmail 90168 invoked by uid 500); 18 Jun 2011 17:20:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 90140 invoked by uid 500); 18 Jun 2011 17:20:08 -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 90133 invoked by uid 99); 18 Jun 2011 17:20:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2011 17:20:08 +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; Sat, 18 Jun 2011 17:20:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 768394203DF for ; Sat, 18 Jun 2011 17:19:47 +0000 (UTC) Date: Sat, 18 Jun 2011 17:19:47 +0000 (UTC) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Message-ID: <599272093.18311.1308417587482.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DERBY-5284) A derby crash at exactly right time during a btree split can cause a corrupt db which can not be booted. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 A derby crash at exactly right time during a btree split can cause a corrupt db which can not be booted. -------------------------------------------------------------------------------------------------------- Key: DERBY-5284 URL: https://issues.apache.org/jira/browse/DERBY-5284 Project: Derby Issue Type: Bug Components: Store Affects Versions: 10.8.1.2, 10.7.1.1, 10.6.1.0, 10.5.3.0, 10.4.2.0, 10.3.3.0, 10.2.2.0, 10.1.3.1 Reporter: Mike Matrigali Assignee: Mike Matrigali A derby crash at exactly wrong time during a btree split can cause a corrupt db which can not be booted. A problem in the split code and exact wrong timing of a crash can leave the database in as state where undo of purge operations corrupts index pages during redo and can cause recovery boot to never succeed and thus the database never to be booted. At hight level what happens is that a purge happens on a page and before it commits another transactions uses the space of the purge to do an insert and then commits, then the system crashes before the purging transactions gets a chance to commit. During undo the purge expects there to be space to undo the purge but there is not, and it corrupts the page in various ways depending on the size and placement of the inserts. The error that actually returns to user varies from sane to insane as the problem is actually noticed after the corruption occurs rather than during the undo. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira