@Override
    protected void archiveLogFile(Path p) throws IOException {
      if (throwArchiveException) {
        throw new IOException("throw archival exception");
      }
    }
Testing sync/append failures. Copied from TestHRegion.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestFailedAppendAndSync.java