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

MasterObserver preMove() and postMove() should throw IOException instead of UnknownRegionException

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: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0
    • Coprocessors
    • None
    • Reviewed

    Description

      We've standardized on IOException as the main way for coprocessors to communicate errors back out of the Observer hooks. All Observer hooks throw IOE except for MasterObserver.preMove() and MasterObserver.postMove(), which throw UnknownRegionException, since that's what HMasterInterface.move() declares. In hindsight, making these two MasterObserver methods inconsistent seems like a mistake.

      I think we should change MasterObserver.preMove() and MasterObserver.postMove() to throw IOException for consistency with the other methods. We could deprecate the existing HMasterInterface.move() method to have it switch over to throwing IOException as well, but this would require creating a version with a new name, which seems unnecessarily ugly. So I'd suggest we just have HMaster.move() handle the IOException and use it to init an UnknownRegionException. Wonky as that is, it seems the lesser evil.

      Attachments

        Issue Links

        Activity

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

          People

            ghelmling Gary Helmling Assign to me
            ghelmling Gary Helmling
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment