private <W extends WALProvider.WriterBase> void closeWriter(AbstractFSWAL<W> wal) {
    wal.waitForSafePoint();
    long oldFileLen = wal.writer.getLength();
    wal.closeWriter(wal.writer, wal.getOldPath());
    wal.logRollAndSetupWalProps(wal.getOldPath(), null, oldFileLen);
    wal.writer = null;
    wal.onWriterReplaced(null);
    wal.rollRequested.set(false);
  }
Tests the case where a RegionServer enters a GC pause, comes back online after the master
declared it dead and started to split. Want log rolling after a master split to fail. See
HBASE-2312.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRollAbort.java