private void closeReader() {
    if (reader != null) {
      reader.close();
      reader = null;
    }
  }
Returns whether the file is opened for writing.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java