[
https://issues.apache.org/jira/browse/NIFI-5075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16436694#comment-16436694
]
ASF GitHub Bot commented on NIFI-5075:
--------------------------------------
GitHub user ijokarumawak opened a pull request:
https://github.com/apache/nifi/pull/2634
NIFI-5075: Do not execute Funnels with no outgoing connections
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:
- [x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
- [x] 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.
- [x] Has your PR been rebased against the latest commit within the target
branch (typically master)?
- [x] 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/ijokarumawak/nifi nifi-5075
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/2634.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 #2634
----
commit c60e294432e154eb6b5b3339c40138b13c246ae5
Author: Koji Kawamura <ijokarumawak@...>
Date: 2018-04-13T02:18:24Z
NIFI-5075: Do not execute Funnels with no outgoing connections
----
> Funnels with no outgoing relationship error
> -------------------------------------------
>
> Key: NIFI-5075
> URL: https://issues.apache.org/jira/browse/NIFI-5075
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.6.0
> Reporter: Peter Wicks
> Assignee: Koji Kawamura
> Priority: Major
>
> If a Funnel has no outgoing relationships it will throw an exception when it
> tries to send FlowFile's to that non-existent relationship.
> Replicate by creating a GenerateFlowFile processor to a Funnel, start the
> GenerateFlowFile processor and check your log file.
>
> 2018-04-11 23:53:28,066 ERROR [Timer-Driven Process Thread-31]
> o.apache.nifi.controller.StandardFunnel
> StandardFunnel[id=b868231c-0162-1000-571c-ae3e7d15d848]
> StandardFunnel[id=b868231c-0162-1000-571c-ae3e7d15d848] failed to process
> session due to java.lang.RuntimeException:
> java.lang.IllegalArgumentException: Relationship '' is not known; Processor
> Administratively Yielded for 1 sec: java.lang.RuntimeException:
> java.lang.IllegalArgumentException: Relationship '' is not known
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Relationship
> '' is not known
> at
> org.apache.nifi.controller.StandardFunnel.onTrigger(StandardFunnel.java:365)
> at
> org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:175)
> at
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
> 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:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalArgumentException: Relationship '' is not known
> at
> org.apache.nifi.controller.repository.StandardProcessSession.transfer(StandardProcessSession.java:1935)
> at
> org.apache.nifi.controller.StandardFunnel.onTrigger(StandardFunnel.java:379)
> at
> org.apache.nifi.controller.StandardFunnel.onTrigger(StandardFunnel.java:358)
> ... 9 common frames omitted
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)