[ 
https://issues.apache.org/jira/browse/NIFI-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009863#comment-17009863
 ] 

ASF subversion and git services commented on NIFI-6955:
-------------------------------------------------------

Commit 8f9fc49ca0277ea4a6429effd8b9090a1cd6a4da in nifi's branch 
refs/heads/master from KovalevIV
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=8f9fc49 ]

NIFI-6955 close streams in Reader/writer mock


> mock-record ArrayListRecordReader/Writer don't close streams
> ------------------------------------------------------------
>
>                 Key: NIFI-6955
>                 URL: https://issues.apache.org/jira/browse/NIFI-6955
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.11.0
>            Reporter: Ilya Kovalev
>            Priority: Minor
>              Labels: bug, mocks, test
>             Fix For: 1.10.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Hi Team!
> nifi-mock-record-utils has next class
> {code:java}
> public class ArrayListRecordWriter extends AbstractControllerService 
> implements RecordSetWriterFactory {
> {code}
> with factory method
> {code:java}
> public RecordSetWriter createWriter(final ComponentLog logger, final 
> RecordSchema schema, final OutputStream out, final Map<String, String> 
> variables){code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to