Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-1099

NPE thrown from TXManagerImpl.isDistributed() when distributed system is shutting down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0-incubating.M2
    • transactions
    • None

    Description

      When the distributed system is shutting down, TXManagerImpl.isDistributed() can throw the below NPE:

      java.lang.NullPointerException
      	at com.gemstone.gemfire.internal.cache.TXManagerImpl.isDistributed(TXManagerImpl.java:1507)
      	at com.gemstone.gemfire.internal.cache.TXManagerImpJUnitTest.testIsDistributed(TXManagerImpJUnitTest.java:339)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      Since the cache is closing down, a CacheClosedException should be thrown instead.

      Attachments

        1. TXManagerImplNPE.diff
          0.8 kB
          Swapnil Bawaskar

        Activity

          People

            swapnil.bawaskar Swapnil Bawaskar
            swapnil.bawaskar Swapnil Bawaskar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: