public static boolean isDefaultReplica(RegionInfo hri) {
    return hri.getReplicaId() == DEFAULT_REPLICA_ID;
  }
Returns true if this region is a default replica for the region
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionReplicaUtil.java