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

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

Commit 29e7adb2b4fa4b385dcfc758083479516fb1b4be in nifi's branch 
refs/heads/master from Matthew Knight
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=29e7adb ]

NIFI-6686 - Improved exception handling in ResizeImage processor.

This closes #3922.

Signed-off-by: Mark Payne <[email protected]>


> ResizeImage Processor Does Not Handle Some Exceptions Cleanly
> -------------------------------------------------------------
>
>                 Key: NIFI-6686
>                 URL: https://issues.apache.org/jira/browse/NIFI-6686
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 1.9.2
>         Environment: Ubuntu OS, OpenJDK 1.8
>            Reporter: Matthew Knight
>            Priority: Major
>              Labels: beginner, imageio
>         Attachments: peppers.jpg
>
>   Original Estimate: 48h
>          Time Spent: 0.5h
>  Remaining Estimate: 47.5h
>
> The ResizeImage Processor's process method which performs the actual image 
> handles IOExceptions and performs some validation, but it does not handle all 
> exception types cleanly.  The attached image (peppers.jpg) throws an 
> IllegalArgumentException.  The offending flowfile gets penalized, but 
> whenever it is reprocessed this error will just happen again because the 
> image itself is the source of the problem and that has not changed.  
> Processing time becomes wasted as the same file is processed repeatedly at 
> every penalty duration with the same result.  ImageResize exceptions should 
> be caught and handled explicitly as REL_FAILURE.



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

Reply via email to