Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 69346 invoked from network); 31 Aug 2005 17:15:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2005 17:15:00 -0000 Received: (qmail 85646 invoked by uid 500); 31 Aug 2005 17:14:58 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 85623 invoked by uid 500); 31 Aug 2005 17:14:58 -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 85595 invoked by uid 99); 31 Aug 2005 17:14:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2005 10:14:58 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=SPF_HELO_FAIL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 32.97.182.142 is neither permitted nor denied by domain of suresh.thalamati@gmail.com) Received: from [32.97.182.142] (HELO e2.ny.us.ibm.com) (32.97.182.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2005 10:15:12 -0700 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e2.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j7VHEp8d031521 for ; Wed, 31 Aug 2005 13:14:51 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j7VHEpCo097002 for ; Wed, 31 Aug 2005 13:14:51 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11/8.13.3) with ESMTP id j7VHEpmh013761 for ; Wed, 31 Aug 2005 13:14:51 -0400 Received: from [127.0.0.1] (tsuresh.svl.ibm.com [9.30.40.136]) by d01av02.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j7VHEn8J013693 for ; Wed, 31 Aug 2005 13:14:50 -0400 Message-ID: <4315E587.5020502@gmail.com> Date: Wed, 31 Aug 2005 10:14:47 -0700 From: Suresh Thalamati User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: Re: Occaisonal rollback on reboot References: <1125466478.20870.45.camel@home.scottyallen.com> In-Reply-To: <1125466478.20870.45.camel@home.scottyallen.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > > I've done this, and I'll see if that leads to more useful info. With > only derby.infolog.append=true, I did find the following error (which > may be the crux of our problem). I can't say for certain whether this > conincided with a database rollback, but I suspect it may have. > > 2005-08-30 16:40:49.671 GMT: > Booting Derby version The Apache Software Foundation - Apache Derby - > 10.0.2.1 - (106978): instance c013800d-0106-0843-1b00-000075ccda01 > on database directory /Users/scotty/k2db-data/k2db/pkb > > ------------ BEGIN ERROR MESSAGE ------------- > > System may be in a inconsistent state, missing file /Users/scotty/k2db- > data/k2db/pkb/log/log1.dat > ------------ END ERROR MESSAGE ------------- > > Database Class Loader started - derby.database.classpath='' > 2005-08-30 16:40:53.181 GMT Thread > [javawsApplicationMain,5,javawsApplicationThreadGroup] (XID = 5), > (SESSIONID = 0), (DATABASE = pkb), (DRDAID = null), Committing > 2005-08-30 16:40:53.182 GMT Thread > [javawsApplicationMain,5,javawsApplicationThreadGroup] (XID = 5), > (SESSIONID = 0), (DATABASE = pkb), (DATABASE = pkb), (DRDAID = null), > Rolling back > 2005-08-30 16:40:58.040 GMT Thread[AWT-EventQueue-0,6,main] (XID = 6), > (SESSIONID = 1), (DATABASE = pkb), (DRDAID = null), Committing > > > > What does log1.dat store? Would the nonexistence of this file on boot > cause the sort of behavior I'm seeing? > Yes. log1.dat will contain the transaction log , that is used to redo the transactions in case of a crash. So files in the log directory are essential to bring database to a consistent state during the reboot after the crash and also for transaction rollbacks ..etc. I wonder how log1.dat is missing , have not seen any bugs regarding this. Some how the log files are vanishing: 1) By chance , are the files in the database base log directory (/log) are compressed by some automatic/manual process? 2) is there some automatic mechanism that is deleting the files in the Users directory ? 3) Is some one manually deleting these files, thinking they are just error log files ? Try running the application on different disk/location and check if you are missing committed transactions, there also. Thanks -suresht