Skip to content

Commit

Permalink
NIFI-8020 Make sure TailFile doesn't leave FileChannel open when hand…
Browse files Browse the repository at this point in the history
…ling NUL characters

Signed-off-by: Pierre Villard <[email protected]>

This closes apache#4671.
  • Loading branch information
tpalfy authored and pvillard31 committed Nov 17, 2020
1 parent a0328ff commit 4aaec5a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ public void process(final OutputStream rawOut) throws IOException {

if (abort.get() != null) {
session.remove(flowFile);
tfo.setState(new TailFileState(tailFile, file, reader, position, timestamp, length, checksum, state.getBuffer()));
throw abort.get();
}

Expand Down

0 comments on commit 4aaec5a

Please sign in to comment.