@Test
  public void testReset() throws Exception {
    byte[] content;
    try (FSDataInputStream in = FS.open(TEMPLATE_WAL_FILE)) {
      content = ByteStreams.toByteArray(in);
    }
    try (FSDataOutputStream out = FS.create(WAL_FILE)) {
      test(content, out);
    }
  }
Enable compression and reset the WALEntryStream while reading in ReplicationSourceWALReader.
<p/>
This is used to confirm that we can work well when hitting EOFException in the middle when
reading a WAL entry, when compression is enabled. See HBASE-27621 for more details.
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStreamCompressionReset.java