Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-11579

CopyTable should check endtime value only if != 0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.99.0, 0.98.4
    • Fix Version/s: 0.99.0, 0.98.5
    • Component/s: mapreduce
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      CopyTable automatically assign an endTime if startTime is specified and endTime is not:

          if (startTime != 0) {
            scan.setTimeRange(startTime,
                endTime == 0 ? HConstants.LATEST_TIMESTAMP : endTime);
          }
      

      However, we test if endTime is == 0 and exit before we get a chance to set the range:

            if (startTime > endTime) {
              printUsage("Invalid time range filter: starttime=" + startTime + " >  endtime=" + endTime);
              return false;
            }
      

      So we need to check endTime only if it's != 0.

        Attachments

        1. HBASE-11579-v0-trunk.patch
          0.8 kB
          Jean-Marc Spaggiari

          Activity

            People

            • Assignee:
              jmspaggi Jean-Marc Spaggiari
              Reporter:
              jmspaggi Jean-Marc Spaggiari
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: