falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rag...@apache.org
Subject git commit: FALCON-729 HCatFeedOperationsTest should not initialize hcat client during var declaration. Contributed by Raghav Kumar Gautam
Date Mon, 15 Sep 2014 22:45:53 GMT
Repository: incubator-falcon
Updated Branches:
  refs/heads/master 71cf738e4 -> 864b4b0c2


FALCON-729 HCatFeedOperationsTest should not initialize hcat client during var declaration.
Contributed by Raghav Kumar Gautam


Project: http://git-wip-us.apache.org/repos/asf/incubator-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-falcon/commit/864b4b0c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-falcon/tree/864b4b0c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-falcon/diff/864b4b0c

Branch: refs/heads/master
Commit: 864b4b0c20824e3582e4cf100bba320449863ffd
Parents: 71cf738
Author: Raghav Kumar Gautam <raghav@apache.org>
Authored: Mon Sep 15 15:45:47 2014 -0700
Committer: Raghav Kumar Gautam <raghav@apache.org>
Committed: Mon Sep 15 15:45:47 2014 -0700

----------------------------------------------------------------------
 falcon-regression/CHANGES.txt                                  | 3 +++
 .../apache/falcon/regression/hcat/HCatFeedOperationsTest.java  | 6 ++++--
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/864b4b0c/falcon-regression/CHANGES.txt
----------------------------------------------------------------------
diff --git a/falcon-regression/CHANGES.txt b/falcon-regression/CHANGES.txt
index c2488c5..ad12dbd 100644
--- a/falcon-regression/CHANGES.txt
+++ b/falcon-regression/CHANGES.txt
@@ -9,6 +9,9 @@ Trunk (Unreleased)
    via Samarth Gupta)
 
   IMPROVEMENTS
+   FALCON-729 HCatFeedOperationsTest should not initialize hcat client during
+   var declaration (Raghav Kumar Gautam)
+
    FALCON-726 Expect less fields in messages in falcon-regression
    (Ruslan Ostafiychuk)
 

http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/864b4b0c/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/hcat/HCatFeedOperationsTest.java
----------------------------------------------------------------------
diff --git a/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/hcat/HCatFeedOperationsTest.java
b/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/hcat/HCatFeedOperationsTest.java
index 8b5c01c..2214c6e 100644
--- a/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/hcat/HCatFeedOperationsTest.java
+++ b/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/hcat/HCatFeedOperationsTest.java
@@ -59,11 +59,11 @@ public class HCatFeedOperationsTest extends BaseTestClass {
 
     ColoHelper cluster = servers.get(0);
     OozieClient clusterOC = serverOC.get(0);
-    HCatClient clusterHC = cluster.getClusterHelper().getHCatClient();
+    HCatClient clusterHC;
 
     ColoHelper cluster2 = servers.get(1);
     OozieClient cluster2OC = serverOC.get(1);
-    HCatClient cluster2HC = cluster2.getClusterHelper().getHCatClient();
+    HCatClient cluster2HC;
 
     private String dbName = "default";
     private String tableName = "hcatFeedOperationsTest";
@@ -78,6 +78,8 @@ public class HCatFeedOperationsTest extends BaseTestClass {
 
     @BeforeClass(alwaysRun = true)
     public void createTestData() throws Exception {
+        clusterHC = cluster.getClusterHelper().getHCatClient();
+        cluster2HC = cluster2.getClusterHelper().getHCatClient();
         //create an empty table for feed operations
         ArrayList<HCatFieldSchema> partitions = new ArrayList<HCatFieldSchema>();
         partitions.add(HCatUtil.getStringSchema("year", "yearPartition"));


Mime
View raw message