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

Make enableReplicationPeer/disableReplicationPeer idempotent

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Admin, Replication
    • None

    Description

      When enableReplicationPeer is called and the peer is already enabled, DoNotRetryIOException is being thrown as part of preEnablePeer here, similarly with disableReplicationPeer here.

      java.lang.RuntimeException: org.apache.hadoop.hbase.DoNotRetryIOException: Replication peer 1 has already been enabled

      Ideally, it should not throw a runtimeException, if the peer is already in desired state

      Either 1. we should add a check before trying to enable/disable peer, and if it is already enabled return, else enable the peer or
      2. Log the message instead of throwing exception in preEnablePeer/preDisablePeer

      Attachments

        Activity

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

          People

            nishtha11shah Nishtha Shah Assign to me
            nishtha11shah Nishtha Shah

            Dates

              Created:
              Updated:

              Slack

                Issue deployment