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

hbck -boundaries doesn't work correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.1, 1.3.3
    • Component/s: hbck
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently, in HBaseFsck#checkRegionBoundaries(), it seems like keys from reader.getFirstKey() and reader.getLastKey() are directly compared by ByteArrayComparator:

      https://github.com/apache/hbase/blob/9d0c7c6dfbcba0907cbbc2244eac570fcc4d58a5/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java#L864-L865
      https://github.com/apache/hbase/blob/9d0c7c6dfbcba0907cbbc2244eac570fcc4d58a5/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java#L869-L870

      This is not correct because the keys consist of a key length and key itself. We should compare rowkeys or the only key itself (by removing a key length).

        Attachments

        1. HBASE-19551.branch-1.patch
          7 kB
          Toshihiro Suzuki
        2. HBASE-19551.patch
          3 kB
          Toshihiro Suzuki

          Activity

            People

            • Assignee:
              brfrn169 Toshihiro Suzuki
              Reporter:
              brfrn169 Toshihiro Suzuki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: