Repository: lens
Updated Branches:
  refs/heads/master b36a02774 -> 125a429ad


LENS-998 : Partition skip is not logging correct start and end time in the logs.


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

Branch: refs/heads/master
Commit: 125a429ad0ff333e1579c015e138777606339455
Parents: b36a027
Author: sushilmohanty <sushilmoha...@apache.org>
Authored: Fri Apr 1 11:35:33 2016 +0530
Committer: sushilmohanty <sushilmoha...@apache.org>
Committed: Fri Apr 1 11:35:33 2016 +0530

----------------------------------------------------------------------
 .../org/apache/lens/cube/metadata/CubeMetastoreClient.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lens/blob/125a429a/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
----------------------------------------------------------------------
diff --git 
a/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
 
b/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
index a29f42e..42a8eb2 100644
--- 
a/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
+++ 
b/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
@@ -962,9 +962,11 @@ public class CubeMetastoreClient {
         }
       }
     }
-    log.info("List of partitions skipped : {}, because they fall before fact 
start time : {} "
-                    + "and after fact end time : {}",
-            skippedParts, storageStartDate, storageEndDate);
+    if (!skippedParts.isEmpty()) {
+      log.info("List of partitions skipped : {}, because they fall before fact 
start time : {} "
+              + "and after fact end time : {}",
+          skippedParts, storageStartDate, storageEndDate);
+    }
     return timeSpecs;
   }
 

Reply via email to