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

HBaseFsck's checkRegionBoundaries function sets incorrect 'storesFirstKey'

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • hbck
    • None
    • Reviewed
    • Patch

    Description

      HBaseFsck's checkRegionBoundaries function set the 'currentRegionBoundariesInformation.storesFirstKey' was incorrect.I think it should be set like below,
      currentRegionBoundariesInformation.storesFirstKey = keyOnly(storeFirstKey);
      but current the 'currentRegionBoundariesInformation.storesFirstKey ' is just set to 'storeFirstKey',which will cause to comparator.compare(currentRegionBoundariesInformation.storesFirstKey,
      currentRegionBoundariesInformation.metaFirstKey) get a wrong result. Because it just compared the rowkey's length.

      Attachments

        1. HBASE-15126-v006.patch
          2 kB
          chenrongwei
        2. HBASE-15126-v005.patch
          2 kB
          chenrongwei
        3. HBASE-15126-v004.patch
          2 kB
          chenrongwei
        4. HBASE-15126-v003.patch
          226 kB
          chenrongwei
        5. HBASE-15126-v002.patch
          1.0 kB
          chenrongwei
        6. HBASE-15126-v001.patch
          226 kB
          chenrongwei

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            chenrongwei chenrongwei
            chenrongwei chenrongwei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment