@Override
  public Map<String, Long> getOutputCounts() {
    TreeMap<String, Long> ret = new TreeMap<>();
    for (Map.Entry<String, RecoveredEditsWriter> entry : writers.entrySet()) {
      ret.put(entry.getKey(), entry.getValue().editsWritten);
    }
    return ret;
  }
Close all the output streams.
@param finalizeEdits true in the successful close case, false when we don't want to rename and
                     finalize the temporary, possibly corrupted WAL files, such as when there
                     was a previous failure or exception. Please see HBASE-28569.
@return true when there is no error.
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/RecoveredEditsOutputSink.java