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

HBaseFsck's checkRegionBoundaries function sets incorrect 'storesFirstKey'

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate 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

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment