public static boolean shouldReplayRecoveredEdits(HRegion region) {
    return isDefaultReplica(region.getRegionInfo());
  }
Returns whether to replay the recovered edits to flush the results. Currently secondary region
replicas do not replay the edits, since it would cause flushes which might affect the primary
region. Primary regions even opened in read only mode should replay the edits.
@param region the HRegion object
@return whether recovered edits should be replayed.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/ServerRegionReplicaUtil.java