[
https://issues.apache.org/jira/browse/NIFI-6925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Burgess updated NIFI-6925:
-------------------------------
Status: Patch Available (was: In Progress)
> JoltTransformRecord fails with various RecordReaders
> ----------------------------------------------------
>
> Key: NIFI-6925
> URL: https://issues.apache.org/jira/browse/NIFI-6925
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Matt Burgess
> Assignee: Matt Burgess
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When using JoltTransformRecord with readers such as AvroReader or CSVReader,
> an error occurs when trying to transfer the original input flowfile to the
> "original" relationship. The error indicates that it is reading from multiple
> callbacks or that the input stream is still open. It happens to work with
> JsonTreeReader because the underlying JSON parser closes the stream when no
> more records are available.
> This is a result of not explicitly closing the input stream before trying to
> transfer the input flow file. It was not caught in the unit tests because
> MockProcessSession doesn't keep track of the open reader count, so that
> should be fixed as well. Fixing MockProcessSession will cause
> TestJoltTransformRecord to fail before the fix for this case is applied.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)