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

Joe Skora commented on NIFI-2411:
---------------------------------

Actually, I tested it with 6GB input files and it worked great, with and 
without the Remove All Content.

It's the way the Mock framework reads the entire file into memory using a 
{{byte[]}} that limits it to 2G (Integer.MAX_VALUE actually).

If you have any thoughts on how to test in a streaming way, I'm glad to look 
into that, but I couldn't find any examples.

> ModifyBytes should use long instead of int for offsets.
> -------------------------------------------------------
>
>                 Key: NIFI-2411
>                 URL: https://issues.apache.org/jira/browse/NIFI-2411
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.0.0, 0.7.0
>            Reporter: Joe Skora
>            Assignee: Joseph Witt
>              Labels: easyfix
>             Fix For: 1.0.0, 0.8.0
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> ModifyBytes.onTrigger() uses Java 32 bit {{int}} value for byte offsets 
> limiting it to 2 Gigabytes, switching to {{long}} values will allow it to 
> handle up to 15 Exabytes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to