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

NPE when shutting down non-initialized mapped file memory provier

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      Description

      If a node has mapped file memory provider and node initialization fails, I get the following exception:

      java.lang.NullPointerException
          at org.apache.ignite.internal.mem.file.MappedFileMemoryProvider.shutdown(MappedFileMemoryProvider.java:97)
          at org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl.stop(PageMemoryNoStoreImpl.java:239)
          at org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager.stop0(IgniteCacheDatabaseSharedManager.java:649)
          at org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter.stop(GridCacheSharedManagerAdapter.java:94)
          at org.apache.ignite.internal.processors.cache.GridCacheProcessor.stop(GridCacheProcessor.java:888)
          at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2109)
          at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:1987)
          at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1074)
          at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1973)
          at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1716)
          at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1144)
          at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1062)
          at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:948)
          at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:847)
          at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:717)
          at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:686)
          at org.apache.ignite.Ignition.start(Ignition.java:347)
          at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
      

      The cause is obvious - we try to access an uninitialized field.

        Attachments

          Activity

            People

            • Assignee:
              agoncharuk Alexey Goncharuk
              Reporter:
              agoncharuk Alexey Goncharuk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: