Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BFB3D11E97 for ; Thu, 24 Jul 2014 19:08:39 +0000 (UTC) Received: (qmail 48830 invoked by uid 500); 24 Jul 2014 19:08:39 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 48782 invoked by uid 500); 24 Jul 2014 19:08:39 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 48769 invoked by uid 99); 24 Jul 2014 19:08:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 19:08:39 +0000 Date: Thu, 24 Jul 2014 19:08:39 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-11579) CopyTable should check endtime value only if != 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Purtell updated HBASE-11579: ----------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 0.98.5 0.99.0 Hadoop Flags: Reviewed Status: Resolved (was: Patch Available) Committed to 0.98+ Ping [~enis], small bug fix went in > CopyTable should check endtime value only if != 0 > ------------------------------------------------- > > Key: HBASE-11579 > URL: https://issues.apache.org/jira/browse/HBASE-11579 > Project: HBase > Issue Type: Bug > Components: mapreduce > Affects Versions: 0.99.0, 0.98.4 > Reporter: Jean-Marc Spaggiari > Assignee: Jean-Marc Spaggiari > Fix For: 0.99.0, 0.98.5, 2.0.0 > > Attachments: HBASE-11579-v0-trunk.patch > > > CopyTable automatically assign an endTime if startTime is specified and endTime is not: > {code} > if (startTime != 0) { > scan.setTimeRange(startTime, > endTime == 0 ? HConstants.LATEST_TIMESTAMP : endTime); > } > {code} > However, we test if endTime is == 0 and exit before we get a chance to set the range: > {code} > if (startTime > endTime) { > printUsage("Invalid time range filter: starttime=" + startTime + " > endtime=" + endTime); > return false; > } > {code} > So we need to check endTime only if it's != 0. -- This message was sent by Atlassian JIRA (v6.2#6252)