Issue Details (XML | Word | Printable)

Key: DERBY-3052
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Critical Critical
Assignee: Unassigned
Reporter: Kathey Marsden
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

testStalePlanCheckIntervalOutOfRange(org.apache.derbyTesting.functionTests.tests.lang.StalePlansTest) fails with java.sql.SQLException: Log Record has been sent to the stream, but it cannot be applied to the store (Object null)

Created: 05/Sep/07 06:13 PM   Updated: 29/Jun/09 10:57 PM
Return to search
Component/s: Test
Affects Version/s: 10.3.2.1, 10.4.1.3
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
OS:Windows 0.4.0.0 alpha - (572851)
IBM 1.4.2
Issue Links:
Duplicate
 

Bug behavior facts: Regression Test Failure
Resolution Date: 10/Jun/08 07:46 PM


 Description  « Hide
On 9/4 I saw this failure with IBM 1.4.2 on Windows. cannot reproduce.


1) testStalePlanCheckIntervalOutOfRange(org.apache.derbyTesting.functionTests.tests.lang.StalePlansTest)java.sql.SQLException: Log Record has been sent to the stream, but it cannot be applied to the store (Object null). This may cause recovery problems also.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(Unknown Source)
at org.apache.derbyTesting.functionTests.tests.lang.StalePlansTest.setUp(StalePlansTest.java:83)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
Caused by: java.sql.SQLException: The store has been marked for shutdown by an earlier exception.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
... 35 more
Caused by: java.sql.SQLException: Meta-data for Container org.apache.derby.impl.store.raw.data.RAFContainer4@54ec81f1 could not be accessed
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
... 36 more
Caused by: java.sql.SQLException: Java exception: ': java.io.EOFException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
... 37 more
Caused by: java.io.EOFException
at java.io.RandomAccessFile.readFully(RandomAccessFile.java:394)
at java.io.RandomAccessFile.readFully(RandomAccessFile.java:372)
at org.apache.derby.impl.store.raw.data.FileContainer.getEmbryonicPage(Unknown Source)
at org.apache.derby.impl.store.raw.data.RAFContainer.writeRAFHeader(Unknown Source)
at org.apache.derby.impl.store.raw.data.RAFContainer.clean(Unknown Source)
at org.apache.derby.impl.services.cache.CachedItem.clean(Unknown Source)
at org.apache.derby.impl.services.cache.Clock.cleanCache(Unknown Source)
at org.apache.derby.impl.services.cache.Clock.cleanAll(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.checkpoint(Unknown Source)
at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
at org.apache.derby.impl.store.raw.RawStore.checkpoint(Unknown Source)
at org.apache.derby.impl.store.raw.log.LogToFile.performWork(Unknown Source)
at org.apache.derby.impl.services.daemon.BasicDaemon.serviceClient(Unknown Source)
at org.apache.derby.impl.services.daemon.BasicDaemon.work(Unknown Source)
at org.apache.derby.impl.services.daemon.BasicDaemon.run(Unknown Source)
at java.lang.Thread.run(Thread.java:570)
There was 1 failure:

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Knut Anders Hatlen added a comment - 06/Sep/07 06:56 AM
The stack trace looks suspiciously similar to DERBY-2144 and DERBY-2589.

Manjula Kutty added a comment - 07/Nov/07 08:05 PM
Happened again 11/02 with similar stack trace.

Kathey Marsden added a comment - 26/Nov/07 05:47 PM
I saw this with IBM 1.4.2 on 11/25/07 with the 10.3 branch with Windows

Kathey Marsden added a comment - 30/Nov/07 06:21 PM
Changing affects version since this has occurred on the 10.3 branch.

Mamta A. Satoor added a comment - 09/Jan/08 07:29 AM
This happened on trunk 10.4.0.0 alpha - (609841) with ibm142

Kathey Marsden added a comment - 18/Feb/08 01:03 AM
Saw this 2/15/2008 on IBM 1.4.2

Manjula Kutty added a comment - 28/Mar/08 07:50 PM
Happend again on 03/27/08 on ibm142

Mamta A. Satoor added a comment - 04/Apr/08 06:42 PM
Noticed this again on April 3rd with ibm142

Rick Hillegas added a comment - 10/Jun/08 02:45 PM
Has this issue been seen on Java 5? Knut (05/Sep/07) noted that this report is suspiciously similar to DERBY-2144, which Kathey resolved as a JVM bug. According to the link Kathey posted (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4189011), that JVM bug appears to be fixed in Java 5. All of the instances of this problem (in this JIRA) are reported against jdk1.4.2.

Knut Anders Hatlen added a comment - 10/Jun/08 07:46 PM
Actually, I think this is the same problem as DERBY-3347. I'm marking the issue as resolved. If it happens again, we can reopen the issue or create a new one.