[ 
https://issues.apache.org/jira/browse/NIFI-2592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15425366#comment-15425366
 ] 

Mark Payne commented on NIFI-2592:
----------------------------------

[~joewitt] - this is definitely something that we need to address. However, it 
is a fairly sizable undertaking and introduces quite a bit of risk. In use 
cases where we run a cluster of nodes all on the same host, for testing, this 
becomes problematic. However, this is not something that I believe is very 
problematic for any sort of production environment.

Given the small-ish impact of the issue, and the effort/risk involved, I would 
recommend we do not put it on 1.0.0 but should schedule it for 1.1.0 perhaps?

> Processor still runs @OnScheduled method when it's running on a non-primary 
> node
> --------------------------------------------------------------------------------
>
>                 Key: NIFI-2592
>                 URL: https://issues.apache.org/jira/browse/NIFI-2592
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.0.0
>            Reporter: Jeff Storck
>
> If a processor is scheduled to run on the primary node only, the instances of 
> the processor running on non-primary nodes still have their methods annotated 
> with @OnScheduled invoked. The framework should not invoke the @OnScheduled 
> methods if the processor isn't supposed to run on that node.
> To reproduce this, set up a cluster with the nodes running on the same 
> server. The ListenHTTP can be scheduled to be run on the primary node only, 
> but other instances of the processor on non-primary nodes will still try to 
> bind the port, resulting in exceptions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to