You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Michael Moser (JIRA)" <ji...@apache.org> on 2017/01/31 22:47:51 UTC

[jira] [Updated] (NIFI-3424) CLONE for 0.x - Unable to generate Provenance Event because FlowFile UUID is not set

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

Michael Moser updated NIFI-3424:
--------------------------------
    Fix Version/s: 0.8.0
           Status: Patch Available  (was: Open)

I tested the 0.x branch before, and confirmed the bug exists.  After this patch to 0.x, I verified that the bug is fixed.

> CLONE for 0.x - Unable to generate Provenance Event because FlowFile UUID is not set
> ------------------------------------------------------------------------------------
>
>                 Key: NIFI-3424
>                 URL: https://issues.apache.org/jira/browse/NIFI-3424
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.7.1
>            Reporter: Michael Moser
>            Assignee: Michael Moser
>             Fix For: 0.8.0
>
>
> If I view a Provenance Event and click the Replay button, all works as expected, if NiFi continues to run. However, if I replay a FlowFile and leave the FlowFile in the queue while NiFi is restarted, upon restart I see the following error in the log when trying to process the FlowFile:
> 2016-11-15 12:40:21,658 ERROR [Timer-Driven Process Thread-4] o.a.n.c.r.StandardProvenanceReporter Failed to generate Provenance Event due to java.lang.IllegalStateException: Cannot create Provenance Event Record because FlowFile UUID is not set
> 2016-11-15 12:40:21,664 WARN [Timer-Driven Process Thread-4] o.a.n.c.r.StandardProcessSession Unable to generate Provenance Event for StandardFlowFileRecord[uuid=<null>,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1479231329248-1, container=default, section=1], offset=0, length=10240],offset=0,name=<null>,size=10240] on behalf of UpdateAttribute[id=69080060-0158-1000-4b41-9b0e329b0c59] due to {}
> java.lang.IllegalStateException: Cannot create Provenance Event Record because FlowFile UUID is not set
>         at org.apache.nifi.provenance.StandardProvenanceEventRecord$Builder.assertSet(StandardProvenanceEventRecord.java:723) ~[nifi-data-provenance-utils-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.provenance.StandardProvenanceEventRecord$Builder.build(StandardProvenanceEventRecord.java:744) ~[nifi-data-provenance-utils-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.provenance.StandardProvenanceEventRecord$Builder.build(StandardProvenanceEventRecord.java:401) ~[nifi-data-provenance-utils-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.controller.repository.StandardProvenanceReporter.generateDropEvent(StandardProvenanceReporter.java:104) ~[nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.controller.repository.StandardProcessSession.checkpoint(StandardProcessSession.java:255) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:304) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:28) [nifi-api-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1089) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60]
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_60]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_60]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_60]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]



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