hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [3/3] git commit: HBASE-11579 CopyTable should check endtime value only if != 0 (Jean-Marc Spaggiari)
Date Thu, 24 Jul 2014 19:06:29 GMT
HBASE-11579 CopyTable should check endtime value only if != 0 (Jean-Marc Spaggiari)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2a53add0
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2a53add0
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2a53add0

Branch: refs/heads/0.98
Commit: 2a53add01b89f750433dfb93cdaeead0baace3a4
Parents: 77f4095
Author: Andrew Purtell <apurtell@apache.org>
Authored: Thu Jul 24 12:05:27 2014 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Thu Jul 24 12:05:44 2014 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2a53add0/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java
index 97c42b7..01c4006 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java
@@ -244,7 +244,7 @@ public class CopyTable extends Configured implements Tool {
             "peer address must be specified");
         return false;
       }
-      if (startTime > endTime) {
+      if ((endTime != 0) && (startTime > endTime)) {
         printUsage("Invalid time range filter: starttime=" + startTime + " >  endtime="
+ endTime);
         return false;
       }


Mime
View raw message