adenes commented on a change in pull request #4792:
URL: https://github.com/apache/nifi/pull/4792#discussion_r569493455
##########
File path:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TailFile.java
##########
@@ -1184,7 +1191,15 @@ private boolean recoverRolledFiles(final ProcessContext
context, final ProcessSe
// This is the same file that we were reading when
we shutdown. Start reading from this point on.
rolledOffFiles.remove(0);
FlowFile flowFile = session.create();
- flowFile = session.importFrom(in, flowFile);
+ try {
+ ByteArrayOutputStream out = new
ByteArrayOutputStream();
Review comment:
oh, wow, I wasn't aware of this version of `session.write`. I was also a
bit concerned about the buffering, thanks, will update the PR
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]