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

Wrong result in one case of scan that use raw and versions and filter together

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0-alpha-1, 2.3.0, 2.2.5
    • Scanners
    • None
    • Make the logic of the versions chosen more reasonable for raw scan, to avoid lose result when using filter.

    Description

      create 'testScanRaw',{NAME => 'f', VERSIONS => 1}
       
      put 'testScanRaw','r1','f:q','1'
      put 'testScanRaw','r1','f:q','2'
      put 'testScanRaw','r1','f:q','3'
       
      hbase(main):005:0> scan 'testScanRaw',{RAW => true, STARTROW => 'r1', STOPROW=>'r1',VERSIONS=>2}
      ROW COLUMN+CELL
      r1 column=f:q, timestamp=1563430154757, value=3
      r1 column=f:q, timestamp=1563430153120, value=2
       
      hbase(main):006:0> scan 'testScanRaw',{RAW => true, STARTROW => 'r1', STOPROW=>'r1',VERSIONS=>2,FILTER => "(QualifierFilter (=, 'binary:q'))"}
      ROW COLUMN+CELL
      r1 column=f:q, timestamp=1563430154757, value=3

       

      BTW,the result is right in hbase1.2.

      Attachments

        Issue Links

          Activity

            People

              filtertip Zheng Wang
              filtertip Zheng Wang
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: