mirror of https://github.com/apache/nifi.git
NIFI-8020 Make sure TailFile doesn't leave FileChannel open when handling NUL characters
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #4671.
This commit is contained in:
parent
a0328ff8d1
commit
4aaec5aa38
|
@ -799,6 +799,7 @@ public class TailFile extends AbstractProcessor {
|
||||||
|
|
||||||
if (abort.get() != null) {
|
if (abort.get() != null) {
|
||||||
session.remove(flowFile);
|
session.remove(flowFile);
|
||||||
|
tfo.setState(new TailFileState(tailFile, file, reader, position, timestamp, length, checksum, state.getBuffer()));
|
||||||
throw abort.get();
|
throw abort.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue