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

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

Commit 229b20f3954e66f3f8a5c373e08b887f1209a315 in nifi's branch 
refs/heads/master from Joe Gresock
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=229b20f ]

NIFI-3419: Routing flow files causing ZipException to failure in MergeContent

This closes #1454.


> MergeContent should route to failure on ZipException
> ----------------------------------------------------
>
>                 Key: NIFI-3419
>                 URL: https://issues.apache.org/jira/browse/NIFI-3419
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.1.1
>            Reporter: Joseph Gresock
>            Assignee: Joseph Gresock
>             Fix For: 1.2.0
>
>
> In cases like duplicate entries using the Zip format in MergeContent, the 
> processor should route to failure instead of leaving the exception uncaught, 
> which causes flow files to administratively yield and never be processed.
> 2017-01-30 11:11:39,106 ERROR [Timer-Driven Process Thread-142] 
> o.a.n.processors.standard.MergeContent
> org.apache.nifi.processor.exception.ProcessException: IOException thrown from 
> MergeContent[id=a9476272-dab0-3d2f-acef-abf11f7d1b80]: 
> java.util.zip.ZipException: duplicate entry: 
> c8e206d2c658b14c386b8c8ffc8d3db88c082874.json
>         at 
> org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:2348)
>  ~[na:na]
>         at 
> org.apache.nifi.processors.standard.MergeContent$ZipMerge.merge(MergeContent.java:826)
>  ~[nifi-standard-processors-1.1.1.jar:1.1.1]
>         at 
> org.apache.nifi.processors.standard.MergeContent.processBin(MergeContent.java:459)
>  ~[nifi-standard-processors-1.1.1.jar:1.1.1]
>         at 
> org.apache.nifi.processor.util.bin.BinFiles.processBins(BinFiles.java:231) 
> [nifi-processor-utils-1.1.1.jar:1.1.1]
>         at 
> org.apache.nifi.processor.util.bin.BinFiles.onTrigger(BinFiles.java:191) 
> [nifi-processor-utils-1.1.1.jar:1.1.1]
> Caused by: java.util.zip.ZipException: duplicate entry: 
> c8e206d2c658b14c386b8c8ffc8d3db88c082874.json
>         at 
> java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:232) 
> ~[na:1.8.0_111]
>         at 
> org.apache.nifi.processors.standard.MergeContent$ZipMerge$1.process(MergeContent.java:837)
>  ~[nifi-standard-processors-1.1.1.jar:1.1.1]
>         at 
> org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:2329)
>  ~[na:na]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to