public void failWrite()

in simplestore/src/main/java/com/uber/simplestore/impl/AtomicFile.java [132:147]


  public void failWrite(@Nullable FileOutputStream str) {
    if (str == null) {
      return;
    }
    if (!sync(str)) {
      Log.e(LOG_TAG, "Failed to sync file output stream");
    }
    try {
      str.close();
    } catch (IOException e) {
      Log.e(LOG_TAG, "Failed to close file output stream");
    }
    if (!mNewName.delete()) {
      Log.e(LOG_TAG, "Failed to delete new file " + mNewName);
    }
  }