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

Make enableReplicationPeer/disableReplicationPeer idempotent

    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

        Issue Links

          Activity

            People

              nishtha11shah Nishtha Shah
              nishtha11shah Nishtha Shah
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: