Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 46570 invoked from network); 3 Jun 2009 22:48:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jun 2009 22:48:18 -0000 Received: (qmail 49930 invoked by uid 500); 3 Jun 2009 22:48:30 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 49893 invoked by uid 500); 3 Jun 2009 22:48:30 -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 49885 invoked by uid 99); 3 Jun 2009 22:48:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 22:48:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 22:48:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C1C6A234C004 for ; Wed, 3 Jun 2009 15:48:07 -0700 (PDT) Message-ID: <1581200043.1244069287779.JavaMail.jira@brutus> Date: Wed, 3 Jun 2009 15:48:07 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4252) intermittent corruption./java.io.EOFException in RandomAccessFile.readInt() on boot after compress with background checkpoint In-Reply-To: <1438243922.1243947847701.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-4252: ---------------------------------- Attachment: reproBackgroundCheckpoint.zip > intermittent corruption./java.io.EOFException in RandomAccessFile.readInt() on boot after compress with background checkpoint > ----------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-4252 > URL: https://issues.apache.org/jira/browse/DERBY-4252 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.6.0.0 > Environment: Windows XP dualcore. > java version "1.6.0" > Java(TM) SE Runtime Environment (build pwi3260sr4-20090219_01(SR4)) > IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260-20090215_29883 (JIT enabled, AOT enabled) > J9VM - 20090215_029883_lHdSMr > JIT - r9_20090213_2028 > GC - 20090213_AA) > JCL - 20090218_01 > Also tried with the latest development SR5 version and it reproduces. > Reporter: Kathey Marsden > Priority: Critical > Attachments: corrupt_database_with_logs.zip, reproBackgroundCheckpoint.zip > > > The attached reproduction reproBackgroundCheckpoint.zip occasionally results in an EOF exception on boot with IBM 1.6 (about 1 out of 200 runs) even after the fix for DERBY-4239. The program inserts into /deletes some data from a table and runs compress, and as a daemon thread that loops checkpoints. I have not seen it with the Sun JVM. > Before the fix for DERBY-4239, this issue was much more frequent. Sometimes you would get the DERBY-4239 trace and sometimes this one. After the fix, this issue remains. Mike thought it looked like a different bug and asked that we file a separate issue. > This is the trace: > java.io.EOFException > at java.io.RandomAccessFile.readInt(RandomAccessFile.java:739) > at java.io.RandomAccessFile.readLong(RandomAccessFile.java:772) > at org.apache.derby.impl.store.raw.log.Scan.getNextRecordForward(Unknown Source) > at org.apache.derby.impl.store.raw.log.Scan.getNextRecord(Unknown Source) > at org.apache.derby.impl.store.raw.log.FileLogger.redo(Unknown Source) > at org.apache.derby.impl.store.raw.log.LogToFile.recover(Unknown Source) > at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source) > at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source) > at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source) > at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source) > at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source) > at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source) > at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source) > at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source) > at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source) > at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.(Unknown Source) > at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) > at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) > at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) > at java.sql.DriverManager.getConnection(DriverManager.java:316) > at java.sql.DriverManager.getConnection(DriverManager.java:273) > at CheckTables.main(CheckTables.java:8) > To reproduce, compile the java programs and run reprobckchkpt.ksh. You may want to increase the number of iterations and let it run overnight to see the failure or back out the fix for DERBY-4239 to see it happen quicker. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.