Github user ilooner commented on a diff in the pull request:
https://github.com/apache/incubator-apex-malhar/pull/80#discussion_r43951041
--- Diff:
library/src/main/java/com/datatorrent/lib/io/fs/AbstractFileOutputOperator.java
---
@@ -642,6 +658,22 @@ protected void closeStream(FSFilterStreamContext
streamContext) throws IOExcepti
}
/**
+ * Renames source path to destination atomically. This relies on the
FileContext api. If
+ * the underlying filesystem doesn't have an {@link AbstractFileSystem}
then this should be overridden.
+ *
+ * @param source source path
+ * @param destination destination path
+ * @throws IOException
+ */
+ protected void rename(Path source, Path destination) throws IOException
--- End diff --
Could this method be used to rename files in finalizeFile?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---