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:
Phillip Grenier 2019-07-03 13:47:15 -04:00 committed by Koji Kawamura
parent 24e50953a3
commit e277545cea
No known key found for this signature in database
GPG Key ID: 36136B0EC89E4758

View File

@ -103,6 +103,7 @@ public class WriteAvroResultWithExternalSchema extends AbstractRecordSetWriter {
@Override
public void close() throws IOException {
if (encoder != null) {
flush();
recycleQueue.offer(encoder);
}