public String getZNodeForReplica(int replicaId) {
    if (RegionReplicaUtil.isDefaultReplica(replicaId)) {
      return joinZNode(baseZNode, metaZNodePrefix);
    } else {
      return joinZNode(baseZNode, metaZNodePrefix + "-" + replicaId);
    }
  }
Returns the znode string corresponding to a replicaId
hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZNodePaths.java