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

Creating cache after closing cache may throw DistributedSystemDisconnectedException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • core
    • None

    Description

      This problem is caused by a race condition and may reproduce if you attempt to create a Cache using the CacheFactory immediately after more than one thread invokes Cache.close().

      org.apache.geode.distributed.DistributedSystemDisconnectedException: This connection to a distributed system has been disconnected.
              at org.apache.geode.distributed.internal.InternalDistributedSystem.checkConnected(InternalDistributedSystem.java:945)
              at org.apache.geode.distributed.internal.InternalDistributedSystem.getDistributionManager(InternalDistributedSystem.java:1665)
              at org.apache.geode.internal.cache.GemFireCacheImpl.<init>(GemFireCacheImpl.java:791)
              at org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:187)
              at org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:158)
              at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:142)
      

      Attachments

        Activity

          People

            klund Kirk Lund
            klund Kirk Lund
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 5h 40m
                5h 40m