mirror of https://github.com/apache/nifi.git
NIFI-2865: Fixed bug in StreamDemarcator that is exposed when the final bit of data in a stream is smaller than the previous and the previous demarcation ended on a buffer length boundary
This closes #1110. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
b9cb6b1b47
commit
9304df4de0
|
@ -145,6 +145,7 @@ public class StreamDemarcator implements Closeable {
|
|||
System.arraycopy(this.buffer, this.mark, this.buffer, 0, length);
|
||||
this.index = length;
|
||||
this.mark = 0;
|
||||
this.readAheadLength = length;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue