falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suh...@apache.org
Subject git commit: FALCON-556 Feed Replication _SUCCESS is not getting created on target directory. Contributed by pavan kumar kolamuri
Date Wed, 23 Jul 2014 19:43:58 GMT
Repository: incubator-falcon
Updated Branches:
  refs/heads/master 14476f9ab -> 6f40e2a5a


FALCON-556 Feed Replication _SUCCESS is not getting created on target directory. Contributed
by pavan kumar kolamuri


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

Branch: refs/heads/master
Commit: 6f40e2a5a6ac9df3434ad33e446157e5604ecad1
Parents: 14476f9
Author: Suhas V <suhas.v@inmobi.com>
Authored: Thu Jul 24 01:13:44 2014 +0530
Committer: Suhas V <suhas.v@inmobi.com>
Committed: Thu Jul 24 01:13:44 2014 +0530

----------------------------------------------------------------------
 CHANGES.txt                                                       | 3 +++
 .../main/java/org/apache/falcon/replication/FeedReplicator.java   | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/6f40e2a5/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 5882329..58f315c 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -25,6 +25,9 @@ Trunk (Unreleased)
   OPTIMIZATIONS
 
   BUG FIXES
+   FALCON-556 Feed Replication _SUCCESS is not getting created on target directory.
+   (pavan kumar kolamuri via Suhas Vasu)
+
    FALCON-497 Able to submit feed even though owner of storage specified (location type=data)

    is different from the ACL owner. (Shwetha GS)
 

http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/6f40e2a5/replication/src/main/java/org/apache/falcon/replication/FeedReplicator.java
----------------------------------------------------------------------
diff --git a/replication/src/main/java/org/apache/falcon/replication/FeedReplicator.java b/replication/src/main/java/org/apache/falcon/replication/FeedReplicator.java
index f01c46c..b6d2fa3 100644
--- a/replication/src/main/java/org/apache/falcon/replication/FeedReplicator.java
+++ b/replication/src/main/java/org/apache/falcon/replication/FeedReplicator.java
@@ -143,6 +143,7 @@ public class FeedReplicator extends Configured implements Tool {
         String relativePath = includePath.toString().substring(sourcePath.toString().length());
         String fixedPath = getFixedPath(relativePath);
 
+        fixedPath = StringUtils.stripStart(fixedPath, "/");
         Path finalOutputPath;
         if (StringUtils.isNotEmpty(fixedPath)) {
             finalOutputPath = new Path(targetPath, fixedPath);


Mime
View raw message