Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-10669

NPE in freelist.PagesList.findTailIndex

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: persistence
    • Labels:
      None
    • Environment:

      Windows

      Description

      Run node with 1 cache and put to it.
      Kill node and try run back - it broken on start

      [22:40:10,916][INFO][main][GridCacheDatabaseSharedManager] Applying lost cache updates since last checkpoint record [lastMarked=FileWALPointer [idx=2, fileOff=14706, len=21409], lastCheckpointId=2f9202e9-c9d7-47ca-9dcc-299a959bb2e0]
      [22:40:10,922][SEVERE][main][IgniteKernal] Exception during start processors, node will be stopped and close connections
      java.lang.NullPointerException
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList.findTailIndex(PagesList.java:502)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList.updateTail(PagesList.java:458)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList.mergeNoNext(PagesList.java:1330)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList.removeDataPage(PagesList.java:1281)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.AbstractFreeList$RemoveRowHandler.run(AbstractFreeList.java:305)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.AbstractFreeList$RemoveRowHandler.run(AbstractFreeList.java:261)
      	at org.apache.ignite.internal.processors.cache.persistence.tree.util.PageHandler.writePage(PageHandler.java:279)
      	at org.apache.ignite.internal.processors.cache.persistence.DataStructure.write(DataStructure.java:256)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.AbstractFreeList.removeDataRowByLink(AbstractFreeList.java:571)
      	at org.apache.ignite.internal.processors.cache.persistence.metastorage.MetastorageRowStore.removeRow(MetastorageRowStore.java:57)
      	at org.apache.ignite.internal.processors.cache.persistence.metastorage.MetaStorage.putData(MetaStorage.java:253)
      	at org.apache.ignite.internal.processors.cache.persistence.metastorage.MetaStorage.applyUpdate(MetaStorage.java:492)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.applyLogicalUpdates(GridCacheDatabaseSharedManager.java:2420)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.startMemoryRestore(GridCacheDatabaseSharedManager.java:1909)
      	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1056)
      	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2040)
      	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1732)
      	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1158)
      	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1076)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:962)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:861)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:731)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:700)
      	at org.apache.ignite.Ignition.start(Ignition.java:348)
      	at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
      [22:40:10,922][SEVERE][main][IgniteKernal] Got exception while starting (will rollback startup routine).
      java.lang.NullPointerException
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList.findTailIndex(PagesList.java:502)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList.updateTail(PagesList.java:458)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList.mergeNoNext(PagesList.java:1330)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList.removeDataPage(PagesList.java:1281)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.AbstractFreeList$RemoveRowHandler.run(AbstractFreeList.java:305)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.AbstractFreeList$RemoveRowHandler.run(AbstractFreeList.java:261)
      	at org.apache.ignite.internal.processors.cache.persistence.tree.util.PageHandler.writePage(PageHandler.java:279)
      	at org.apache.ignite.internal.processors.cache.persistence.DataStructure.write(DataStructure.java:256)
      	at org.apache.ignite.internal.processors.cache.persistence.freelist.AbstractFreeList.removeDataRowByLink(AbstractFreeList.java:571)
      	at org.apache.ignite.internal.processors.cache.persistence.metastorage.MetastorageRowStore.removeRow(MetastorageRowStore.java:57)
      	at org.apache.ignite.internal.processors.cache.persistence.metastorage.MetaStorage.putData(MetaStorage.java:253)
      	at org.apache.ignite.internal.processors.cache.persistence.metastorage.MetaStorage.applyUpdate(MetaStorage.java:492)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.applyLogicalUpdates(GridCacheDatabaseSharedManager.java:2420)
      	at org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.startMemoryRestore(GridCacheDatabaseSharedManager.java:1909)
      	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1056)
      	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2040)
      	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1732)
      	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1158)
      	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1076)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:962)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:861)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:731)
      	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:700)
      	at org.apache.ignite.Ignition.start(Ignition.java:348)
      	at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jokser Pavel Kovalenko
                Reporter:
                ARomantsov ARomantsov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m