You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@falcon.apache.org by su...@apache.org on 2015/04/09 09:11:11 UTC

[2/2] falcon git commit: FALCON-1142 ClusterEntityParserTest.testClusterWithOnlyStaging fails when run alone. Contributed by Pallavi Rao

FALCON-1142 ClusterEntityParserTest.testClusterWithOnlyStaging fails when run alone. Contributed by Pallavi Rao


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

Branch: refs/heads/0.6.1
Commit: 89c2749f7f28560e8fb1e4ddf8b7f0f917351ab8
Parents: 2edd402
Author: Suhas Vasu <su...@inmobi.com>
Authored: Thu Apr 9 12:39:24 2015 +0530
Committer: Suhas Vasu <su...@inmobi.com>
Committed: Thu Apr 9 12:39:24 2015 +0530

----------------------------------------------------------------------
 CHANGES.txt                                                   | 7 +++++--
 .../apache/falcon/entity/parser/ClusterEntityParserTest.java  | 3 ++-
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/89c2749f/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 067cb9d..7cbb573 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -29,8 +29,11 @@ Branch: 0.6.1 (Proposed Release Version: 0.6.1)
    FALCON-822 Add reverse look up API (Ajay Yadava via Suhas Vasu)
 
   IMPROVEMENTS
-   FALCON-1128 Adding getter methods to FeedLookupResult(KArishma G 
-   via Samarth)
+   FALCON-1142 ClusterEntityParserTest.testClusterWithOnlyStaging
+   fails when run alone(Pallavi Rao via Suhas Vasu)
+
+   FALCON-1128 Adding getter methods to FeedLookupResult
+   (Karishma Gulati via Samarth)
 
    FALCON-1086 Support execution-order of a feed to be overridden
    for replication coord (Shaik Idris Ali via Suhas Vasu)

http://git-wip-us.apache.org/repos/asf/falcon/blob/89c2749f/common/src/test/java/org/apache/falcon/entity/parser/ClusterEntityParserTest.java
----------------------------------------------------------------------
diff --git a/common/src/test/java/org/apache/falcon/entity/parser/ClusterEntityParserTest.java b/common/src/test/java/org/apache/falcon/entity/parser/ClusterEntityParserTest.java
index 5085b24..acc14a4 100644
--- a/common/src/test/java/org/apache/falcon/entity/parser/ClusterEntityParserTest.java
+++ b/common/src/test/java/org/apache/falcon/entity/parser/ClusterEntityParserTest.java
@@ -285,13 +285,14 @@ public class ClusterEntityParserTest extends AbstractTestBase {
         Mockito.doNothing().when(clusterEntityParser).validateWorkflowInterface(cluster);
         Mockito.doNothing().when(clusterEntityParser).validateMessagingInterface(cluster);
         Mockito.doNothing().when(clusterEntityParser).validateRegistryInterface(cluster);
+        this.dfsCluster.getFileSystem().mkdirs(new Path(ClusterHelper.getLocation(cluster,
+                        ClusterLocationType.STAGING).getPath()), HadoopClientFactory.READ_EXECUTE_PERMISSION);
         clusterEntityParser.validate(cluster);
         String workingDirPath = cluster.getLocations().getLocations().get(0).getPath() + "/working";
         Assert.assertEquals(ClusterHelper.getLocation(cluster, ClusterLocationType.WORKING).getPath(), workingDirPath);
         FileStatus workingDirStatus = this.dfsCluster.getFileSystem().getFileLinkStatus(new Path(workingDirPath));
         Assert.assertTrue(workingDirStatus.isDirectory());
         Assert.assertEquals(workingDirStatus.getPermission(), HadoopClientFactory.READ_EXECUTE_PERMISSION);
-
     }
 
     /**