[
https://issues.apache.org/jira/browse/NIFI-3040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15850381#comment-15850381
]
ASF subversion and git services commented on NIFI-3040:
-------------------------------------------------------
Commit 2276c6ac1c7f43ec75f0ae442c68506492034c22 in nifi's branch refs/heads/0.x
from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=2276c6a ]
NIFI-3424: NIFI-3040: Fixed bug where we were generating a RepositoryRecord
with an 'UPDATE' type instead of a 'CREATE' time for Replay of FlowFiles. This
caused FlowFile to have no attributes when restored from the FlowFile
Repository.
Signed-off-by: Joe Skora <[email protected]>
> Unable to generate Provenance Event because FlowFile UUID is not set
> --------------------------------------------------------------------
>
> Key: NIFI-3040
> URL: https://issues.apache.org/jira/browse/NIFI-3040
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Fix For: 1.1.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)