Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-321

ASSERT FAILED invalid space required 10012 newDataToWrite.getUsed() 10012 nextRecordOffset 189 ... on a database recoverty.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 10.1.1.0
    • None
    • Store
    • None
    • Windows jdk142

    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

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            tsuresh Suresh Thalamati
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: