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

Prefix_Tree seekBefore() does not work correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 0.98.2, 1.0.1, 1.1.0, 1.0.1.1, 1.1.0.1
    • 0.98.14, 1.0.2, 1.2.0, 1.1.2, 1.3.0, 2.0.0
    • io
    • None
    • Reviewed

    Description

      This is related to the TestSeekTo test case where the seekBefore() does not work with Prefix_Tree because of an issue in getFirstKeyInBlock(). In the trunk and branch-1 changing the return type of getFirstKeyInBlock() from BB to Cell resolved the problem, but the same cannot be done in 0.98. Hence we need a change in the KvUtil.copyToNewBuffer API to handle this. Since the limit is made as the position - in seekBefore when we do

      byte[] firstKeyInCurrentBlock = Bytes.getBytes(firstKey);
      

      in HFileReaderV2.seekBefore() we end up in an empty byte array and it would not be the expected one based on which we try to seek to load a new block.

      Attachments

        1. HBASE-13945_0.98.patch
          10 kB
          ramkrishna.s.vasudevan
        2. HBASE-13945_0.98_1.patch
          11 kB
          ramkrishna.s.vasudevan
        3. HBASE-13945_trunk.patch
          2 kB
          ramkrishna.s.vasudevan
        4. HBASE-13945_branch-1.1.patch
          2 kB
          ramkrishna.s.vasudevan
        5. HBASE-13945_trunk_1.patch
          3 kB
          ramkrishna.s.vasudevan
        6. HBASE-13945_0.98_2.patch
          11 kB
          ramkrishna.s.vasudevan
        7. HBASE-13945_0.98_3.patch
          13 kB
          ramkrishna.s.vasudevan
        8. HBASE-13945_trunk_2.patch
          4 kB
          ramkrishna.s.vasudevan
        9. HBASE-13945_trunk_3.patch
          4 kB
          ramkrishna.s.vasudevan

        Issue Links

          Activity

            People

              ram_krish ramkrishna.s.vasudevan
              ram_krish ramkrishna.s.vasudevan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: