Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6955

mock-record ArrayListRecordReader/Writer don't close streams

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.11.0
    • Fix Version/s: 1.11.0
    • Component/s: Extensions
    • Labels:

      Description

      Hi Team!

      nifi-mock-record-utils has next class

      public class ArrayListRecordWriter extends AbstractControllerService implements RecordSetWriterFactory {
      

      with factory method

      public RecordSetWriter createWriter(final ComponentLog logger, final RecordSchema schema, final OutputStream out, final Map<String, String> variables)

      and RecordSetWriter has close()  method that does nothing.

      So when i obtain outputStream and close it via RecordReader all tests in custom processor failed because OutputStream don't closed.

       ArrayListRecordReader has the same problem.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                skeleton Ilya Kovalev
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h