geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nre...@apache.org
Subject [geode] branch feature/GEODE-3583-storage updated: GEODE-4196: Fix incorrect creation of CacheClosedException
Date Thu, 11 Jan 2018 21:46:06 GMT
This is an automated email from the ASF dual-hosted git repository.

nreich pushed a commit to branch feature/GEODE-3583-storage
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-3583-storage by this push:
     new 0cd1436  GEODE-4196: Fix incorrect creation of CacheClosedException
     new 283c16e  Merge branch 'feature/GEODE-3583-storage' of ssh://github.com/apache/geode
into feature/GEODE-3583-storage
0cd1436 is described below

commit 0cd1436c1969f9ff1d1176912a72c9b240c70947
Author: Nick Reich <nreich@pivotal.io>
AuthorDate: Thu Jan 11 13:43:20 2018 -0800

    GEODE-4196: Fix incorrect creation of CacheClosedException
---
 geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java b/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
index 0dc25dd..5857927 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
@@ -287,7 +287,7 @@ public class CacheFactory {
   private static Cache basicGetInstancePart2(DistributedSystem system, boolean closeOk) {
     InternalCache instance = GemFireCacheImpl.getInstance();
     if (instance == null) {
-      throw instance.getCacheClosedException(
+      throw new CacheClosedException(
           LocalizedStrings.CacheFactory_A_CACHE_HAS_NOT_YET_BEEN_CREATED.toLocalizedString());
     } else {
       if (instance.isClosed() && !closeOk) {

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <commits@geode.apache.org>'].

Mime
View raw message