You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ec...@apache.org on 2016/04/25 23:12:48 UTC
[04/50] [abbrv] hbase git commit: HBASE-15668 HFileReplicator fails
to replicate other hfiles in the request when a hfile in not found in FS
anywhere
HBASE-15668 HFileReplicator fails to replicate other hfiles in the request when a hfile in not found in FS anywhere
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/70687c18
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/70687c18
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/70687c18
Branch: refs/heads/HBASE-14850
Commit: 70687c18bbebf86235091a2b0cbf89600e52ec63
Parents: f2e0aca
Author: Ashish Singhi <as...@huawei.com>
Authored: Mon Apr 18 22:17:02 2016 +0530
Committer: Ashish Singhi <as...@huawei.com>
Committed: Mon Apr 18 22:17:02 2016 +0530
----------------------------------------------------------------------
.../hadoop/hbase/replication/regionserver/HFileReplicator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/70687c18/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/HFileReplicator.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/HFileReplicator.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/HFileReplicator.java
index 17f6780..1a1044d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/HFileReplicator.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/HFileReplicator.java
@@ -378,11 +378,11 @@ public class HFileReplicator {
FileUtil.copy(sourceFs, sourceHFilePath, sinkFs, localHFilePath, false, conf);
} catch (FileNotFoundException e1) {
// This will mean that the hfile does not exists any where in source cluster FS. So we
- // cannot do anything here just log and return.
+ // cannot do anything here just log and continue.
LOG.error("Failed to copy hfile from " + sourceHFilePath + " to " + localHFilePath
+ ". Hence ignoring this hfile from replication..",
e1);
- return null;
+ continue;
}
}
sinkFs.setPermission(localHFilePath, PERM_ALL_ACCESS);