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

Issue in FuzzyRowFilter#getNextForFuzzyRule

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1, 1.1.0, 0.98.13, 2.0.0
    • Component/s: Filters
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      for (int i = 0; i < result.length; i++) {
            if (i >= fuzzyKeyMeta.length || fuzzyKeyMeta[i] == 1) {
              result[i] = row[offset + i];
              if (!order.isMax(row[i])) {
                // this is "non-fixed" position and is not at max value, hence we can increase it
                toInc = i;
              }
            }
      

      See we take row bytes with out considering the row offset. The test cases are passing as we pass 0 offset row bytes. Change in the test will reveal the bug.

      Came across this when I was working on HBASE-11425

        Attachments

        1. HBASE-13491-branch-1.1.patch
          3 kB
          Nick Dimiduk
        2. HBASE-13491-branch-1.1.patch
          3 kB
          Anoop Sam John
        3. HBASE-13491.patch
          3 kB
          Anoop Sam John

          Activity

            People

            • Assignee:
              anoop.hbase Anoop Sam John
              Reporter:
              anoop.hbase Anoop Sam John
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: