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

Scan with the same startRow(inclusive=true) and stopRow(inclusive=false) returns one result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.2
    • 3.0.0-alpha-1, 2.2.0, 2.1.2, 2.0.4, 1.4.10
    • Client
    • None
    • hbase server 2.0.2
      hbase client 2.0.0

    • There was a bug when scan with the same startRow(inclusive=true) and stopRow(inclusive=false). The old incorrect behavior is return one result. After this fix, the new correct behavior is return nothing.

    Description

      I expect the following code to return none result, but still return a row:

      byte[] rowkey = "some key existed";
      Scan scan = new Scan();
      scan.withStartRow(rowkey, true);
      scan.withStopRow(rowkey, false);
      htable.getScanner(scan);
      

      Attachments

        1. HBASE-21618.master.003.patch
          7 kB
          Guanghao Zhang
        2. HBASE-21618.master.002.patch
          7 kB
          Guanghao Zhang
        3. HBASE-21618.master.001.patch
          3 kB
          Guanghao Zhang
        4. HBASE-21618.branch-1.001.patch
          5 kB
          Guanghao Zhang

        Issue Links

          Activity

            People

              zghao Guanghao Zhang
              javeme_lee Jermy Li
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: