You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ma...@apache.org on 2015/06/01 13:29:46 UTC

incubator-kylin git commit: KYLIN-801 bug fix

Repository: incubator-kylin
Updated Branches:
  refs/heads/0.8.0 c7495de91 -> 731f33b0c


KYLIN-801 bug fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/731f33b0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/731f33b0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/731f33b0

Branch: refs/heads/0.8.0
Commit: 731f33b0c047f1b572ebb7b8d434b6a2e3e8c85e
Parents: c7495de
Author: honma <ho...@ebay.com>
Authored: Mon Jun 1 19:29:36 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Mon Jun 1 19:29:36 2015 +0800

----------------------------------------------------------------------
 .../kylin/storage/cache/AbstractCacheFledgedStorageEngine.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/731f33b0/storage/src/main/java/org/apache/kylin/storage/cache/AbstractCacheFledgedStorageEngine.java
----------------------------------------------------------------------
diff --git a/storage/src/main/java/org/apache/kylin/storage/cache/AbstractCacheFledgedStorageEngine.java b/storage/src/main/java/org/apache/kylin/storage/cache/AbstractCacheFledgedStorageEngine.java
index dbd719d..44e2033 100644
--- a/storage/src/main/java/org/apache/kylin/storage/cache/AbstractCacheFledgedStorageEngine.java
+++ b/storage/src/main/java/org/apache/kylin/storage/cache/AbstractCacheFledgedStorageEngine.java
@@ -67,7 +67,11 @@ public abstract class AbstractCacheFledgedStorageEngine implements IStorageEngin
             //Create a Cache specifying its configuration.
             CacheConfiguration templateConf = CACHE_MANAGER.getCache(storageCacheTemplate).getCacheConfiguration();
             PersistenceConfiguration pconf = templateConf.getPersistenceConfiguration();
-            logger.info("PersistenceConfiguration strategy: " + pconf.getStrategy());
+            if (pconf != null) {
+                logger.info("PersistenceConfiguration strategy: " + pconf.getStrategy());
+            } else {
+                logger.warn("PersistenceConfiguration is null");
+            }
 
             Cache storageCache = new Cache(new CacheConfiguration(storageUUID, (int) templateConf.getMaxEntriesLocalHeap()).//
                     memoryStoreEvictionPolicy(templateConf.getMemoryStoreEvictionPolicy()).//