Github user markap14 commented on the issue:
https://github.com/apache/nifi/pull/2509
@zenfenan I think there's also one other detail that I missed. The intent
here, I believe, is not just to default to Primary Node execution mode when the
@PrimaryNodeOnly annotation is present, but to actually enforce that the
processor always use Primary Node execution mode if it has the annotation. Is
that correct? If so, then I think we need to update the setExecutionMode()
method to ignore the provided value and use ExecutionMode.PRIMARY_NODE if the
annotation is present. Otherwise, there is no enforcement guaranteed.
---