kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mahong...@apache.org
Subject kylin git commit: set ResourceStore verbose logs as Trace level
Date Sun, 13 Nov 2016 09:02:27 GMT
Repository: kylin
Updated Branches:
  refs/heads/master a1847b90d -> b7600f87c


set ResourceStore verbose logs as Trace level


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

Branch: refs/heads/master
Commit: b7600f87c061e4979e9fdde046a0e8606ffba331
Parents: a1847b9
Author: Hongbin Ma <mahongbin@apache.org>
Authored: Sun Nov 13 17:02:21 2016 +0800
Committer: Hongbin Ma <mahongbin@apache.org>
Committed: Sun Nov 13 17:02:21 2016 +0800

----------------------------------------------------------------------
 .../java/org/apache/kylin/common/persistence/ResourceStore.java  | 4 ++--
 .../java/org/apache/kylin/storage/hbase/HBaseResourceStore.java  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/b7600f87/core-common/src/main/java/org/apache/kylin/common/persistence/ResourceStore.java
----------------------------------------------------------------------
diff --git a/core-common/src/main/java/org/apache/kylin/common/persistence/ResourceStore.java
b/core-common/src/main/java/org/apache/kylin/common/persistence/ResourceStore.java
index 532e7aa..466d9d2 100644
--- a/core-common/src/main/java/org/apache/kylin/common/persistence/ResourceStore.java
+++ b/core-common/src/main/java/org/apache/kylin/common/persistence/ResourceStore.java
@@ -204,7 +204,7 @@ abstract public class ResourceStore {
      */
     final public void putResource(String resPath, InputStream content, long ts) throws IOException
{
         resPath = norm(resPath);
-        logger.debug("Directly saving resource " + resPath + " (Store " + kylinConfig.getMetadataUrl()
+ ")");
+        logger.trace("Directly saving resource " + resPath + " (Store " + kylinConfig.getMetadataUrl()
+ ")");
         putResourceImpl(resPath, content, ts);
     }
 
@@ -255,7 +255,7 @@ abstract public class ResourceStore {
      * delete a resource, does nothing on a folder
      */
     final public void deleteResource(String resPath) throws IOException {
-        logger.debug("Deleting resource " + resPath + " (Store " + kylinConfig.getMetadataUrl()
+ ")");
+        logger.trace("Deleting resource " + resPath + " (Store " + kylinConfig.getMetadataUrl()
+ ")");
         deleteResourceImpl(norm(resPath));
     }
 

http://git-wip-us.apache.org/repos/asf/kylin/blob/b7600f87/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseResourceStore.java
----------------------------------------------------------------------
diff --git a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseResourceStore.java
b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseResourceStore.java
index 3fd6426..82cc93c 100644
--- a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseResourceStore.java
+++ b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseResourceStore.java
@@ -259,7 +259,7 @@ public class HBaseResourceStore extends ResourceStore {
             Put put = buildPut(resPath, newTS, row, content, table);
 
             boolean ok = table.checkAndPut(row, B_FAMILY, B_COLUMN_TS, bOldTS, put);
-            logger.debug("Update row " + resPath + " from oldTs: " + oldTS + ", to newTs:
" + newTS + ", operation result: " + ok);
+            logger.trace("Update row " + resPath + " from oldTs: " + oldTS + ", to newTs:
" + newTS + ", operation result: " + ok);
             if (!ok) {
                 long real = getResourceTimestampImpl(resPath);
                 throw new IllegalStateException("Overwriting conflict " + resPath + ", expect
old TS " + oldTS + ", but it is " + real);


Mime
View raw message