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

Reject to add a peer which replicate to itself earlier

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha-1, 2.4.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

            • Assignee:
              zghao Guanghao Zhang
              Reporter:
              zghao Guanghao Zhang
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: