You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2018/09/24 12:59:38 UTC
[kylin] branch 2.4.x updated: minor, less log to enable travis-ci
This is an automated email from the ASF dual-hosted git repository.
shaofengshi pushed a commit to branch 2.4.x
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/2.4.x by this push:
new 1e16c15 minor, less log to enable travis-ci
1e16c15 is described below
commit 1e16c15e0c189a3d3244392d96e9148985106773
Author: shaofengshi <sh...@apache.org>
AuthorDate: Mon Sep 24 14:45:47 2018 +0800
minor, less log to enable travis-ci
---
.../org/apache/kylin/common/persistence/FileResourceStore.java | 5 +++--
.../java/org/apache/kylin/metadata/project/ProjectL2Cache.java | 7 -------
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/core-common/src/main/java/org/apache/kylin/common/persistence/FileResourceStore.java b/core-common/src/main/java/org/apache/kylin/common/persistence/FileResourceStore.java
index 7f03b2d..18ffd47 100644
--- a/core-common/src/main/java/org/apache/kylin/common/persistence/FileResourceStore.java
+++ b/core-common/src/main/java/org/apache/kylin/common/persistence/FileResourceStore.java
@@ -127,8 +127,9 @@ public class FileResourceStore extends ResourceStore {
File f = file(resPath);
if (f.exists() && f.isFile()) {
- logger.info("file length = " + f.length() + " , " + f.getAbsolutePath());
-
+ if (f.length() == 0) {
+ logger.warn("Zero length file: " + f.getAbsolutePath());
+ }
FileInputStream resource = new FileInputStream(f);
return new RawResource(resource, f.lastModified());
} else {
diff --git a/core-metadata/src/main/java/org/apache/kylin/metadata/project/ProjectL2Cache.java b/core-metadata/src/main/java/org/apache/kylin/metadata/project/ProjectL2Cache.java
index 1663c8d..c33eb6e 100644
--- a/core-metadata/src/main/java/org/apache/kylin/metadata/project/ProjectL2Cache.java
+++ b/core-metadata/src/main/java/org/apache/kylin/metadata/project/ProjectL2Cache.java
@@ -34,7 +34,6 @@ import org.apache.kylin.metadata.model.TableDesc;
import org.apache.kylin.metadata.model.TblColRef;
import org.apache.kylin.metadata.realization.IRealization;
import org.apache.kylin.metadata.realization.RealizationRegistry;
-import org.apache.kylin.metadata.realization.RealizationType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -229,12 +228,6 @@ class ProjectL2Cache {
logger.warn("Realization '" + entry + "' defined under project '" + project + "' is not found");
}
- //check if there's raw table parasite
- //TODO: ugly impl here
- IRealization parasite = registry.getRealization(RealizationType.INVERTED_INDEX, entry.getRealization());
- if (parasite != null) {
- projectCache.realizations.add(parasite);
- }
}
for (IRealization realization : projectCache.realizations) {