[
https://issues.apache.org/jira/browse/NIFI-5709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16652204#comment-16652204
]
ASF GitHub Bot commented on NIFI-5709:
--------------------------------------
GitHub user markap14 opened a pull request:
https://github.com/apache/nifi/pull/3083
NIFI-5709, NIFI-5710: Addressed issue that causes NiFi to not be able…
… to read provenance events when the a new FlowFile is created and then
auto-terminated in the same session; minor bug fixes outlined in NIFI-5710
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
### For all changes:
- [ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
- [ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number
you are trying to resolve? Pay particular attention to the hyphen "-" character.
- [ ] Has your PR been rebased against the latest commit within the target
branch (typically master)?
- [ ] Is your initial contribution a single, squashed commit?
### For code changes:
- [ ] Have you ensured that the full suite of tests is executed via mvn
-Pcontrib-check clean install at the root nifi folder?
- [ ] Have you written or updated unit tests to verify your changes?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the LICENSE file, including the main
LICENSE file under nifi-assembly?
- [ ] If applicable, have you updated the NOTICE file, including the main
NOTICE file found under nifi-assembly?
- [ ] If adding new Properties, have you added .displayName in addition to
.name (programmatic access) for each of the new properties?
### For documentation related changes:
- [ ] Have you ensured that format looks appropriate for the output in
which it is rendered?
### Note:
Please ensure that once the PR is submitted, you check travis-ci for build
issues and submit an update to your PR as soon as possible.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/markap14/nifi NIFI-5709
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/3083.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3083
----
commit 8bf2ca580fb75b97a35729192c1ab33a670ec725
Author: Mark Payne <markap14@...>
Date: 2018-10-16T18:27:29Z
NIFI-5709, NIFI-5710: Addressed issue that causes NiFi to not be able to
read provenance events when the a new FlowFile is created and then
auto-terminated in the same session; minor bug fixes outlined in NIFI-5710
----
> IllegalStateException thrown when trying to read Provenance Events
> ------------------------------------------------------------------
>
> Key: NIFI-5709
> URL: https://issues.apache.org/jira/browse/NIFI-5709
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Blocker
> Fix For: 1.8.0
>
>
> 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)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)