geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (GEODE-4308) Should be able to create two caches in the same JVM
Date Tue, 30 Jan 2018 18:22:00 GMT


ASF subversion and git services commented on GEODE-4308:

Commit 215177f23119e801e676b8310015841127aa15ef in geode's branch refs/heads/develop from
Dan Smith
[;h=215177f ]

GEODE-4308: Allow two caches in the same JVM if a feature flag is on

If the system property gemfire.ALLOW_MULTIPLE_SYSTEMS is set, then we will
allow multiple caches in the same JVM. Otherwise, the we will have the
same behavior as before.

If the system property is set, we will not retain any static instance of
the cache or distributed system.

Removed the static instance variables from GemFireCacheImpl.
GemFireCacheImpl.getInstance calls now look up the cache instance from
the distributed system.

Note that a single distributed system can still only have a single
cache. Users should create caches and distributed systems using

> Should be able to create two caches in the same JVM
> ---------------------------------------------------
>                 Key: GEODE-4308
>                 URL:
>             Project: Geode
>          Issue Type: Sub-task
>          Components: messaging
>            Reporter: Dan Smith
>            Assignee: Dan Smith
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
> Users should be able to create two or more caches in the same JVM.
> Currently this is impossible because we have a static instance variable that only allows
a single cache.
> We should add a feature flag to let us start getting multiple caches to work if that
feature flag is enabled. For this task we will add the feature flag and enable creating multiple
caches in the same JVM. Not all cache features will work yet, just the CacheFactory.create().

This message was sent by Atlassian JIRA

View raw message