Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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.
Attachments
Issue Links
- links to