Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3040

Unable to generate Provenance Event because FlowFile UUID is not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • Core Framework
    • None

    Description

      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]

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: