hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Marc Spaggiari (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11579) CopyTable should check endtime value only if != 0
Date Wed, 23 Jul 2014 19:05:39 GMT

     [ https://issues.apache.org/jira/browse/HBASE-11579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Marc Spaggiari updated HBASE-11579:
----------------------------------------

    Status: Patch Available  (was: Open)

> 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.98.4, 0.99.0
>            Reporter: Jean-Marc Spaggiari
>            Assignee: Jean-Marc Spaggiari
>         Attachments: HBASE-11579-v0-trunk.patch
>
>
> CopyTable automatically assign an endTime if startTime is specified and endTime is node:
> {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)

Mime
View raw message