public static boolean isDefaultReplica(int replicaId) {
    return DEFAULT_REPLICA_ID == replicaId;
  }
Returns true if this replicaId corresponds to default replica for the region
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionReplicaUtil.java