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

Reject to add a peer which replicate to itself earlier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.4.0
    • None
    • None

    Description

      Now there are one check in ReplicationSource#initialize method

      // In rare case, zookeeper setting may be messed up. That leads to the incorrect
      // peerClusterId value, which is the same as the source clusterId
      if (clusterId.equals(peerClusterId) && !replicationEndpoint.canReplicateToSameCluster()) {
        this.terminate("ClusterId " + clusterId + " is replicating to itself: peerClusterId "
            + peerClusterId + " which is not allowed by ReplicationEndpoint:"
            + replicationEndpoint.getClass().getName(), null, false);
        this.manager.removeSource(this);
        return;
      }
      

      This check should move to AddPeerProcedure's precheck.

      Attachments

        Issue Links

          Activity

            People

              zghao Guanghao Zhang
              zghao Guanghao Zhang
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: