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

IllegalStateException thrown when trying to read Provenance Events

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.0
    • Component/s: Core Framework
    • Labels:
      None

      Description

      I am constantly seeing errors when trying to read provenance events, indicating the that Provenance Event doesn't have a UUID set:

      2018-10-16 18:18:39,434 ERROR [Timer-Driven Process Thread-47] o.a.n.p.s.CompressableRecordReader Failed to read Provenance Event from 264268830281.prov.gz; will skip this event and continue reading subsequent events
      java.lang.IllegalStateException: Cannot create Provenance Event Record because FlowFile UUID is not set
       at org.apache.nifi.provenance.StandardProvenanceEventRecord$Builder.assertSet(StandardProvenanceEventRecord.java:791)
       at org.apache.nifi.provenance.StandardProvenanceEventRecord$Builder.build(StandardProvenanceEventRecord.java:812)
       at org.apache.nifi.provenance.schema.LookupTableEventRecord.getEvent(LookupTableEventRecord.java:356)
       at org.apache.nifi.provenance.EventIdFirstSchemaRecordReader.readRecord(EventIdFirstSchemaRecordReader.java:143)
       at org.apache.nifi.provenance.EventIdFirstSchemaRecordReader.nextRecord(EventIdFirstSchemaRecordReader.java:132)
       at org.apache.nifi.provenance.serialization.CompressableRecordReader.nextRecord(CompressableRecordReader.java:287)
       at org.apache.nifi.provenance.store.iterator.SequentialRecordReaderEventIterator.nextEvent(SequentialRecordReaderEventIterator.java:73)
       at org.apache.nifi.provenance.store.iterator.AuthorizingEventIterator.nextEvent(AuthorizingEventIterator.java:47)
       at org.apache.nifi.provenance.store.PartitionedEventStore.getEvents(PartitionedEventStore.java:214)
       at org.apache.nifi.provenance.store.PartitionedEventStore.getEvents(PartitionedEventStore.java:158)
       at org.apache.nifi.provenance.store.PartitionedEventStore.getEvents(PartitionedEventStore.java:148)
       at org.apache.nifi.provenance.WriteAheadProvenanceRepository.getEvents(WriteAheadProvenanceRepository.java:195)
       at org.apache.nifi.controller.FlowController.getProvenanceEvents(FlowController.java:5061)
       at org.apache.nifi.reporting.util.provenance.ProvenanceEventConsumer.consumeEvents(ProvenanceEventConsumer.java:227)
       at org.apache.nifi.reporting.SiteToSiteProvenanceReportingTask.onTrigger(SiteToSiteProvenanceReportingTask.java:300)
       at org.apache.nifi.controller.tasks.ReportingTaskWrapper.run(ReportingTaskWrapper.java:41)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                markap14 Mark Payne
                Reporter:
                markap14 Mark Payne
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: