Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 24749 invoked from network); 17 Feb 2006 23:46:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 23:46:44 -0000 Received: (qmail 16841 invoked by uid 500); 17 Feb 2006 23:46:43 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 16817 invoked by uid 500); 17 Feb 2006 23:46:43 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 16806 invoked by uid 99); 17 Feb 2006 23:46:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 15:46:43 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.31] (HELO brmea-mail-1.sun.com) (192.18.98.31) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 15:46:42 -0800 Received: from phys-gadget-1 ([129.156.85.171]) by brmea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id k1HNkLSD002130 for ; Fri, 17 Feb 2006 16:46:21 -0700 (MST) Received: from conversion-daemon.gadget-mail1.uk.sun.com by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IUU00D01V4C79@gadget-mail1.uk.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-user@db.apache.org; Fri, 17 Feb 2006 23:46:20 +0000 (GMT) Received: from localhost (vpn-129-150-112-22.Holland.Sun.COM [129.150.112.22]) by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IUU00G5GVD71Y@gadget-mail1.uk.sun.com> for derby-user@db.apache.org; Fri, 17 Feb 2006 23:46:20 +0000 (GMT) Date: Sat, 18 Feb 2006 00:45:35 +0100 From: Knut Anders Hatlen Subject: Re: Derby db files get corrupted In-reply-to: To: Derby Discussion Message-id: <878xs9sg68.fsf@sun.com> Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) References: <20060216074417.714D3D54E4@poczta.interia.pl> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Maciek writes: > Knut Anders Hatlen writes: > >> I have seen this error when I have deleted the database directory and >> recreated the database, but not deleted the log directory. Could that >> be your problem too? > > Well, deleting log files helped. DB is working and the user claims no data is > lost. Maybe adding a "repair tool" to my app that deletes log files could solve > future problems of this. I have been trying to reproduce this problem with no luck. Then I moved from the development trunk to the 10.1.1.0 release, and I was immediately able to reproduce the error by doing this: 1) Create a database with logDevice set to /tmp/log 2) Run some transactions so that a couple of log files are generated 3) Kill Derby 4) Delete database directory 5) Re-create database with logDevice set to /tmp/log 6) Run some transactions so that some, but not all of the log files are overwritten. 7) Kill Derby 8) Restart Derby During the recovery in 8) I got this error message: ERROR XSDB4: Page Page(0,Container(0, 768)) is at version 2,657, the log file contains change version 2,715, either there are log records of this page missing, or this page did not get written out to disk properly. Since I don't get this error with the development trunk (and I have really tried hard!), it seems like the problem has been fixed. I was also able to reproduce the error using the 10.1.2.1 release. Maybe someone knows when this was fixed and can advise how to port the fix to the release you are running? -- Knut Anders