Github user ijokarumawak commented on the issue:
https://github.com/apache/nifi/pull/563
@JPercivall @olegz Thanks for reviewing this! I've rebased the branch, and
addressed the feedback. However, while I was testing this again, I noticed that
if it's running on a clustered NiFi environment, every node gets and clears
offsets from Kafka. While it's working, I think these method should be executed
on only the primary node, or if it's a standalone instance since offsets
information is a global state among consumers.
With `@OnPrimaryNodeStateChange` annotation, it's possible to know if it's
a cluster and a primary node. But it's only called if a node get elected as a
primary, or a node was primary but revoked. Since other node is not notified, I
couldn't distinguish standalone or primary from a processor..
So, I left it as it is for now. Do you know If there's a way to know if
NiFi is clustered from a processor?
---
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.
---