db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Matrigali (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-321) ASSERT FAILED invalid space required 10012 newDataToWrite.getUsed() 10012 nextRecordOffset 189 ... on a database recoverty.
Date Wed, 17 Aug 2005 00:35:55 GMT
     [ http://issues.apache.org/jira/browse/DERBY-321?page=all ]

Mike Matrigali updated DERBY-321:
---------------------------------

      Component: Store
    Description: 
while doing random crash/recovery tests. I got the following assert failure:

org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))



2005-05-24 18:28:45.234 GMT:
 Booting Derby version The Apache Software Foundation - Apache Derby - 10.1.0.0 alpha - (1):
instance c013800d-0104-0ff6-9447-000000109d80
on database directory G:\stresstests\csitm 


Exception trace: 

org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))

	at org.apache.derby.iapi.services.sanity.SanityManager.THROWASSERT(SanityManager.java:150)

	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecordForUpdate(StoredPage.java:7449)

	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecord(StoredPage.java:7098)

	at org.apache.derby.impl.store.raw.data.UpdateOperation.undoMe(UpdateOperation.java:200)

	at org.apache.derby.impl.store.raw.data.PhysicalUndoOperation.doMe(PhysicalUndoOperation.java:146)

	at org.apache.derby.impl.store.raw.log.FileLogger.logAndUndo(FileLogger.java:532)

	at org.apache.derby.impl.store.raw.xact.Xact.logAndUndo(Xact.java:361)

	at org.apache.derby.impl.store.raw.log.FileLogger.undo(FileLogger.java:1014)

	at org.apache.derby.impl.store.raw.xact.Xact.abort(Xact.java:906)

	at org.apache.derby.impl.store.raw.xact.XactFactory.rollbackAllTransactions(XactFactory.java:498)

	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1082)

	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)

	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)

	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)

	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)

	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)

	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)

	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)

	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)

	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)

	at java.sql.DriverManager.getConnection(DriverManager.java:512)

	at java.sql.DriverManager.getConnection(DriverManager.java:140)

	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)

	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)

	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)

	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)

	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)

	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)

	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)

	at org.apache.derby.tools.ij.main(ij.java:60)


------------  BEGIN SHUTDOWN ERROR STACK -------------


ERROR XSLA6: Cannot recover the database.

	at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:304)

	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1207)

	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)

	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)

	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)

	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)

	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)

	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)

	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)

	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)

	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)

	at java.sql.DriverManager.getConnection(DriverManager.java:512)

	at java.sql.DriverManager.getConnection(DriverManager.java:140)

	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)

	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)

	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)

	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)

	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)

	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)

	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)

	at org.apache.derby.tools.ij.main(ij.java:60)

============= begin nested exception, level (1) ===========

org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))

	at org.apache.derby.iapi.services.sanity.SanityManager.THROWASSERT(SanityManager.java:150)

	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecordForUpdate(StoredPage.java:7449)

	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecord(StoredPage.java:7098)

	at org.apache.derby.impl.store.raw.data.UpdateOperation.undoMe(UpdateOperation.java:200)

	at org.apache.derby.impl.store.raw.data.PhysicalUndoOperation.doMe(PhysicalUndoOperation.java:146)

	at org.apache.derby.impl.store.raw.log.FileLogger.logAndUndo(FileLogger.java:532)

	at org.apache.derby.impl.store.raw.xact.Xact.logAndUndo(Xact.java:361)

	at org.apache.derby.impl.store.raw.log.FileLogger.undo(FileLogger.java:1014)

	at org.apache.derby.impl.store.raw.xact.Xact.abort(Xact.java:906)

	at org.apache.derby.impl.store.raw.xact.XactFactory.rollbackAllTransactions(XactFactory.java:498)

	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1082)

	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)

	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)

	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)

	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)

	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)

	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)

	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)

	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)

	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)

	at java.sql.DriverManager.getConnection(DriverManager.java:512)

	at java.sql.DriverManager.getConnection(DriverManager.java:140)

	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)

	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)

	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)

	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)

	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)

	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)

	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)

	at org.apache.derby.tools.ij.main(ij.java:60)

============= end nested exception, level (1) ===========




------------  END SHUTDOWN ERROR STACK -------------



2005-05-24 18:35:36.281 GMT:
Shutting down instance c013800d-0104-0ff6-9447-000000109d80

----------------------------------------------------------------



  was:
while doing random crash/recovery tests. I got the following assert failure:

org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))



2005-05-24 18:28:45.234 GMT:
 Booting Derby version The Apache Software Foundation - Apache Derby - 10.1.0.0 alpha - (1):
instance c013800d-0104-0ff6-9447-000000109d80
on database directory G:\stresstests\csitm 


Exception trace: 

org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))

	at org.apache.derby.iapi.services.sanity.SanityManager.THROWASSERT(SanityManager.java:150)

	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecordForUpdate(StoredPage.java:7449)

	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecord(StoredPage.java:7098)

	at org.apache.derby.impl.store.raw.data.UpdateOperation.undoMe(UpdateOperation.java:200)

	at org.apache.derby.impl.store.raw.data.PhysicalUndoOperation.doMe(PhysicalUndoOperation.java:146)

	at org.apache.derby.impl.store.raw.log.FileLogger.logAndUndo(FileLogger.java:532)

	at org.apache.derby.impl.store.raw.xact.Xact.logAndUndo(Xact.java:361)

	at org.apache.derby.impl.store.raw.log.FileLogger.undo(FileLogger.java:1014)

	at org.apache.derby.impl.store.raw.xact.Xact.abort(Xact.java:906)

	at org.apache.derby.impl.store.raw.xact.XactFactory.rollbackAllTransactions(XactFactory.java:498)

	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1082)

	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)

	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)

	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)

	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)

	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)

	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)

	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)

	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)

	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)

	at java.sql.DriverManager.getConnection(DriverManager.java:512)

	at java.sql.DriverManager.getConnection(DriverManager.java:140)

	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)

	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)

	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)

	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)

	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)

	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)

	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)

	at org.apache.derby.tools.ij.main(ij.java:60)


------------  BEGIN SHUTDOWN ERROR STACK -------------


ERROR XSLA6: Cannot recover the database.

	at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:304)

	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1207)

	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)

	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)

	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)

	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)

	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)

	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)

	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)

	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)

	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)

	at java.sql.DriverManager.getConnection(DriverManager.java:512)

	at java.sql.DriverManager.getConnection(DriverManager.java:140)

	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)

	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)

	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)

	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)

	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)

	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)

	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)

	at org.apache.derby.tools.ij.main(ij.java:60)

============= begin nested exception, level (1) ===========

org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))

	at org.apache.derby.iapi.services.sanity.SanityManager.THROWASSERT(SanityManager.java:150)

	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecordForUpdate(StoredPage.java:7449)

	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecord(StoredPage.java:7098)

	at org.apache.derby.impl.store.raw.data.UpdateOperation.undoMe(UpdateOperation.java:200)

	at org.apache.derby.impl.store.raw.data.PhysicalUndoOperation.doMe(PhysicalUndoOperation.java:146)

	at org.apache.derby.impl.store.raw.log.FileLogger.logAndUndo(FileLogger.java:532)

	at org.apache.derby.impl.store.raw.xact.Xact.logAndUndo(Xact.java:361)

	at org.apache.derby.impl.store.raw.log.FileLogger.undo(FileLogger.java:1014)

	at org.apache.derby.impl.store.raw.xact.Xact.abort(Xact.java:906)

	at org.apache.derby.impl.store.raw.xact.XactFactory.rollbackAllTransactions(XactFactory.java:498)

	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1082)

	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)

	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)

	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)

	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)

	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)

	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)

	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)

	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)

	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)

	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)

	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)

	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)

	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)

	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)

	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)

	at java.sql.DriverManager.getConnection(DriverManager.java:512)

	at java.sql.DriverManager.getConnection(DriverManager.java:140)

	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)

	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)

	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)

	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)

	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)

	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)

	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)

	at org.apache.derby.tools.ij.main(ij.java:60)

============= end nested exception, level (1) ===========




------------  END SHUTDOWN ERROR STACK -------------



2005-05-24 18:35:36.281 GMT:
Shutting down instance c013800d-0104-0ff6-9447-000000109d80

----------------------------------------------------------------




Were you ever able to reproduce this?

> ASSERT FAILED invalid space required 10012 newDataToWrite.getUsed() 10012 nextRecordOffset
189 ... on a database recoverty.
> ---------------------------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-321
>          URL: http://issues.apache.org/jira/browse/DERBY-321
>      Project: Derby
>         Type: Bug
>   Components: Store
>     Versions: 10.1.1.0
>  Environment: Windows jdk142
>     Reporter: Suresh Thalamati
>     Priority: Minor

>
> while doing random crash/recovery tests. I got the following assert failure:
> org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))
> 2005-05-24 18:28:45.234 GMT:
>  Booting Derby version The Apache Software Foundation - Apache Derby - 10.1.0.0 alpha
- (1): instance c013800d-0104-0ff6-9447-000000109d80
> on database directory G:\stresstests\csitm 
> Exception trace: 
> org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))
> 	at org.apache.derby.iapi.services.sanity.SanityManager.THROWASSERT(SanityManager.java:150)
> 	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecordForUpdate(StoredPage.java:7449)
> 	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecord(StoredPage.java:7098)
> 	at org.apache.derby.impl.store.raw.data.UpdateOperation.undoMe(UpdateOperation.java:200)
> 	at org.apache.derby.impl.store.raw.data.PhysicalUndoOperation.doMe(PhysicalUndoOperation.java:146)
> 	at org.apache.derby.impl.store.raw.log.FileLogger.logAndUndo(FileLogger.java:532)
> 	at org.apache.derby.impl.store.raw.xact.Xact.logAndUndo(Xact.java:361)
> 	at org.apache.derby.impl.store.raw.log.FileLogger.undo(FileLogger.java:1014)
> 	at org.apache.derby.impl.store.raw.xact.Xact.abort(Xact.java:906)
> 	at org.apache.derby.impl.store.raw.xact.XactFactory.rollbackAllTransactions(XactFactory.java:498)
> 	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1082)
> 	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)
> 	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)
> 	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)
> 	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)
> 	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)
> 	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)
> 	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)
> 	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)
> 	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)
> 	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:512)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:140)
> 	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)
> 	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)
> 	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)
> 	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)
> 	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)
> 	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)
> 	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)
> 	at org.apache.derby.tools.ij.main(ij.java:60)
> ------------  BEGIN SHUTDOWN ERROR STACK -------------
> ERROR XSLA6: Cannot recover the database.
> 	at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:304)
> 	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1207)
> 	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)
> 	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)
> 	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)
> 	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)
> 	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)
> 	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)
> 	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)
> 	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)
> 	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)
> 	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:512)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:140)
> 	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)
> 	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)
> 	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)
> 	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)
> 	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)
> 	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)
> 	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)
> 	at org.apache.derby.tools.ij.main(ij.java:60)
> ============= begin nested exception, level (1) ===========
> org.apache.derby.iapi.services.sanity.AssertFailure: ASSERT FAILED invalid space required
10012 newDataToWrite.getUsed() 10012 nextRecordOffset 1890 newOffset 1890 reservedSpaceFieldId
5 startField 0 newEndFieldExclusive 8 newFieldCount 8 oldFieldCount 6 slot 3 freeSpace 5439
unusedSpace 0 page Page(454,Container(0, 1152))
> 	at org.apache.derby.iapi.services.sanity.SanityManager.THROWASSERT(SanityManager.java:150)
> 	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecordForUpdate(StoredPage.java:7449)
> 	at org.apache.derby.impl.store.raw.data.StoredPage.storeRecord(StoredPage.java:7098)
> 	at org.apache.derby.impl.store.raw.data.UpdateOperation.undoMe(UpdateOperation.java:200)
> 	at org.apache.derby.impl.store.raw.data.PhysicalUndoOperation.doMe(PhysicalUndoOperation.java:146)
> 	at org.apache.derby.impl.store.raw.log.FileLogger.logAndUndo(FileLogger.java:532)
> 	at org.apache.derby.impl.store.raw.xact.Xact.logAndUndo(Xact.java:361)
> 	at org.apache.derby.impl.store.raw.log.FileLogger.undo(FileLogger.java:1014)
> 	at org.apache.derby.impl.store.raw.xact.Xact.abort(Xact.java:906)
> 	at org.apache.derby.impl.store.raw.xact.XactFactory.rollbackAllTransactions(XactFactory.java:498)
> 	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1082)
> 	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:323)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)
> 	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)
> 	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:994)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:539)
> 	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:418)
> 	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:752)
> 	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:173)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1985)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:284)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1577)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:996)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)
> 	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:533)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1548)
> 	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:193)
> 	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:72)
> 	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)
> 	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:183)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:512)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:140)
> 	at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:836)
> 	at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:698)
> 	at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:528)
> 	at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)
> 	at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)
> 	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)
> 	at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)
> 	at org.apache.derby.tools.ij.main(ij.java:60)
> ============= end nested exception, level (1) ===========
> ------------  END SHUTDOWN ERROR STACK -------------
> 2005-05-24 18:35:36.281 GMT:
> Shutting down instance c013800d-0104-0ff6-9447-000000109d80
> ----------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message