[
https://issues.apache.org/jira/browse/GEODE-7503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17084215#comment-17084215
]
Kirk Lund commented on GEODE-7503:
----------------------------------
I closed the main PR (https://github.com/apache/geode/pull/4410) and this
ticket after Anil and I discussed it further. The main concern is that the
current behavior is expected by users and is de facto correct. Changing it
would change the behavior and result in long-time users being surprised by the
new behavior.
The rest of the PRs involved cleaning up GemFireCacheImpl and adding lots of
new unit tests. Those changes were merged to develop since they didn't change
behavior.
> Creating cache after closing cache may throw
> DistributedSystemDisconnectedException
> -----------------------------------------------------------------------------------
>
> Key: GEODE-7503
> URL: https://issues.apache.org/jira/browse/GEODE-7503
> Project: Geode
> Issue Type: Bug
> Components: core
> Reporter: Kirk Lund
> Priority: Major
> Fix For: 1.12.0
>
> Time Spent: 5h
> Remaining Estimate: 0h
>
> This problem reproduces if you attempt to create a Cache using the
> CacheFactory immediately after closing a Cache.
> {noformat}
> 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)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)