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

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

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

NIFI-7297 add available()

Signed-off-by: Pierre Villard <[email protected]>

This closes #4172.


> Mock bundle: inputStream created py MockProcessSession doesn't count 
> avalable() bytes
> -------------------------------------------------------------------------------------
>
>                 Key: NIFI-7297
>                 URL: https://issues.apache.org/jira/browse/NIFI-7297
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Ilya Kovalev
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> MockProcessSession.read(FlowFile file) return `InputStream`  doesn't count 
> available bytes.
> due testing custom processor that read flowfile by following example
> BufferedReader reader = new BufferedReader(new 
> InputStreamReader(inputStream)) ;
> while (reader.ready()){
> tests will fail because available() return constantly 0 and reader's buffer 
> is empty



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

Reply via email to