[jira] [Updated] (NIFI-6955) mock-record ArrayListRecordReader/Writer don't close streams

2020-01-07 Thread Mark Payne (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Payne updated NIFI-6955:
-
Fix Version/s: (was: 1.10.0)
   1.11.0
   Resolution: Fixed
   Status: Resolved  (was: Patch Available)

> 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.11.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 
> 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)


[jira] [Updated] (NIFI-6955) mock-record ArrayListRecordReader/Writer don't close streams

2019-12-19 Thread Ilya Kovalev (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Kovalev updated NIFI-6955:
---
Affects Version/s: 1.11.0
   Labels: bug mocks test  (was: )
   Status: Patch Available  (was: Open)

add streams and close them in close()

> 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: test, mocks, bug
> Fix For: 1.10.0
>
>  Time Spent: 10m
>  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 
> 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)


[jira] [Updated] (NIFI-6955) mock-record ArrayListRecordReader/Writer don't close streams

2019-12-19 Thread Ilya Kovalev (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Kovalev updated NIFI-6955:
---
Description: 
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 
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.

  was:
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 
variables){code}
and RecordSetWriter has close()  method that does nothing.

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

 ArrayListRecordReader has the same problem.


> 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
>Reporter: Ilya Kovalev
>Priority: Minor
> Fix For: 1.10.0
>
>  Time Spent: 10m
>  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 
> 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)


[jira] [Updated] (NIFI-6955) mock-record ArrayListRecordReader/Writer don't close streams

2019-12-19 Thread Ilya Kovalev (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Kovalev updated NIFI-6955:
---
Description: 
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 
variables){code}
and RecordSetWriter has close()  method that does nothing.

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

 ArrayListRecordReader has the same problem.

  was:
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 
variables){code}
and RecordSetWriter has close()  method that does nothing.

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

 ArrayListRecordReader has the same problem.


> 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
>Reporter: Ilya Kovalev
>Priority: Minor
> Fix For: 1.10.0
>
>  Time Spent: 10m
>  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 
> variables){code}
> and RecordSetWriter has close()  method that does nothing.
> So when i obtain inputStream 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)


[jira] [Updated] (NIFI-6955) mock-record ArrayListRecordReader/Writer don't close streams

2019-12-19 Thread Ilya Kovalev (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Kovalev updated NIFI-6955:
---
Description: 
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 
variables){code}
and RecordSetWriter has close()  method that does nothing.

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

 ArrayListRecordReader has the same problem.

  was:
Hi Team!
  
{code:java}
public class ArrayListRecordWriter extends AbstractControllerService implements 
RecordSetWriterFactory {
{code}
has 
{code:java}
public void close() { }
{code}
but constructor obtain OutputStream
and if

and all tests in custom processor failed because OutputStream don't closed.

 ArrayListRecordReader has the same problem.


> 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
>Reporter: Ilya Kovalev
>Priority: Minor
> Fix For: 1.10.0
>
>  Time Spent: 10m
>  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 
> variables){code}
> and RecordSetWriter has close()  method that does nothing.
> So when i obtain inputStream 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)


[jira] [Updated] (NIFI-6955) mock-record ArrayListRecordReader/Writer don't close streams

2019-12-19 Thread Ilya Kovalev (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Kovalev updated NIFI-6955:
---
Description: 
Hi Team!
  
{code:java}
public class ArrayListRecordWriter extends AbstractControllerService implements 
RecordSetWriterFactory {
{code}
has 
{code:java}
public void close() { }
{code}
but constructor obtain OutputStream
and if

and all tests in custom processor failed because OutputStream don't closed.

 ArrayListRecordReader has the same problem.

  was:
Hi Team!
  
{code:java}
public class ArrayListRecordWriter extends AbstractControllerService implements 
RecordSetWriterFactory {
{code}
has 
{code:java}
public void close() { }
{code}
but constructor obtain OutputStream

and all tests failed because OutputStream don't closed.

 ArrayListRecordReader has the same problem.


> 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
>Reporter: Ilya Kovalev
>Priority: Minor
> Fix For: 1.10.0
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Hi Team!
>   
> {code:java}
> public class ArrayListRecordWriter extends AbstractControllerService 
> implements RecordSetWriterFactory {
> {code}
> has 
> {code:java}
> public void close() { }
> {code}
> but constructor obtain OutputStream
> and if
> and 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)


[jira] [Updated] (NIFI-6955) mock-record ArrayListRecordReader/Writer don't close streams

2019-12-19 Thread Ilya Kovalev (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Kovalev updated NIFI-6955:
---
Summary: mock-record ArrayListRecordReader/Writer don't close streams  
(was: mock-record ArrayListRecordReader/Writer close streams)

> 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
>Reporter: Ilya Kovalev
>Priority: Minor
> Fix For: 1.10.0
>
>
> Hi Team!
>   
> {code:java}
> public class ArrayListRecordWriter extends AbstractControllerService 
> implements RecordSetWriterFactory {
> {code}
> has 
> {code:java}
> public void close() { }
> {code}
> but constructor obtain OutputStream
> and all tests failed because OutputStream don't closed.
>  ArrayListRecordReader has the same problem.



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