@Override
    public void postBatchMutate(ObserverContext<? extends RegionCoprocessorEnvironment> c,
      MiniBatchOperationInProgress<Mutation> miniBatchOp) throws IOException {
      if (!testCP || !RegionReplicaUtil.isDefaultReplica(c.getEnvironment().getRegionInfo())) {
        return;
      }
      throw new DoNotRetryIOException(ERROR_MESSAGE);
    }
Write second put,the {@link WAL#sync} timeout and throws
{@link WALSyncTimeoutIOException},{@link HRegion#put} is failed and rowKey2 is not
applied to primary and secondary replicas.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/regionreplication/TestRegionReplicationForWriteException.java