Github user JPercivall commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/575#discussion_r70711686
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/MonitorActivity.java
 ---
    @@ -234,4 +361,10 @@ public void process(final OutputStream out) throws 
IOException {
                 }
             }
         }
    +
    +    @OnPrimaryNodeStateChange
    +    public void onPrimaryNodeChange(final PrimaryNodeState newState) {
    +        isPrimaryNode = (newState == 
PrimaryNodeState.ELECTED_PRIMARY_NODE);
    --- End diff --
    
    I am running a secure cluster and when I have "primary node only" 
configured for the sending of the messages they never get sent. I believe this 
is because the primary node has been the same since the processor was added and 
it was never changed, therefore this method would never have gotten called. 
    
    I think this needs some way to know that the processor is running on the 
primary node when it gets scheduled or initialized. I'm not sure if that is 
possible at the moment though.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to