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/05/27 13:35:25 UTC

incubator-kylin git commit: fix ci: more log info

Repository: incubator-kylin
Updated Branches:
  refs/heads/0.8.0 db6cbe288 -> 84ec88800


fix ci: more log info


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

Branch: refs/heads/0.8.0
Commit: 84ec88800e7a8946afde87777d38edddf074f897
Parents: db6cbe2
Author: honma <ho...@ebay.com>
Authored: Wed May 27 19:35:17 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Wed May 27 19:35:17 2015 +0800

----------------------------------------------------------------------
 .../kylin/storage/gridtable/diskstore/GTDiskStore.java       | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/84ec8880/storage/src/main/java/org/apache/kylin/storage/gridtable/diskstore/GTDiskStore.java
----------------------------------------------------------------------
diff --git a/storage/src/main/java/org/apache/kylin/storage/gridtable/diskstore/GTDiskStore.java b/storage/src/main/java/org/apache/kylin/storage/gridtable/diskstore/GTDiskStore.java
index e8926c2..d01cf73 100644
--- a/storage/src/main/java/org/apache/kylin/storage/gridtable/diskstore/GTDiskStore.java
+++ b/storage/src/main/java/org/apache/kylin/storage/gridtable/diskstore/GTDiskStore.java
@@ -43,9 +43,11 @@ public class GTDiskStore implements IGTStore {
             final String path = getRootDirectory(identifier);
             if (fs.createDirectory(path)) {
                 return identifier;
-            }
-            if (++tryCount > 5) {
-                throw new RuntimeException("failed to generateIdentifier");
+            } else {
+                logger.warn("failed to create dir " + path);
+                if (++tryCount > 5) {
+                    throw new RuntimeException("failed to generateIdentifier");
+                }
             }
         }
     }