[ 
https://issues.apache.org/jira/browse/GEODE-7503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095685#comment-17095685
 ] 

ASF subversion and git services commented on GEODE-7503:
--------------------------------------------------------

Commit c12e8cc7221ba79aa60dfdee02059b847a4c787c in geode's branch 
refs/heads/mass-test-run from Kirk Lund
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=c12e8cc ]

GEODE-7503: Block Cache.close() until everything is disconnected (#4963)

Subsequent calls to GemFireCacheImpl close will now block until the
first call to close completes instead of returning from early-outs.

Use boolean argument to skip await if cache close is invoked from
the DisconnectListener in InternalLocator.

Additional changes:
* Make cache close reentrant
* Fixup GemFireCacheImplCloseTest flakiness
* Remove unused class

> 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
>            Assignee: Kirk Lund
>            Priority: Major
>          Time Spent: 5h 40m
>  Remaining Estimate: 0h
>
> 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().
> {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)

Reply via email to