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

Small bug in CellUtil.matchingRow(Cell, byte[])

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

        public static boolean matchingRow(final Cell left, final byte[] buf) {
          if (buf == null) {
            return left.getQualifierLength() == 0;
          }
          return matchingRow(left, buf, 0, buf.length);
        }
      

      The 'if' condition should check for left.getRowLength() == 0.

        Attachments

        1. HBASE-15253.patch
          0.7 kB
          ramkrishna.s.vasudevan

          Activity

            People

            • Assignee:
              ram_krish ramkrishna.s.vasudevan
              Reporter:
              ram_krish ramkrishna.s.vasudevan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: