mirror of
https://github.com/apache/nifi.git
synced 2025-02-09 03:25:04 +00:00
NIFI-6419: Flush the buffers on close to ensure all data is written.
This closes #3568. Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
This commit is contained in:
parent
24e50953a3
commit
e277545cea
@ -103,6 +103,7 @@ public class WriteAvroResultWithExternalSchema extends AbstractRecordSetWriter {
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
if (encoder != null) {
|
||||
flush();
|
||||
recycleQueue.offer(encoder);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user