Joe Witt created NIFI-16665:
-------------------------------
Summary: Cluster Coordinator disconnects nodes whose Revision
Update Count is briefly ahead of the coordinator's during a flow update
Key: NIFI-16665
URL: https://issues.apache.org/jira/browse/NIFI-16665
Project: Apache NiFi
Issue Type: Bug
Reporter: Joe Witt
Assignee: Joe Witt
NodeClusterCoordinator.validateHeartbeat (added in NIFI-8204) asks a node to
reconnect when its heartbeat Revision Update Count is greater than the
coordinator's. The coordinator only increments its count after its own update
task returns, so a node that finishes an update and sends its next heartbeat
first is wrongly reconnected. This was seen in OffloadIT on macOS and
LoadBalanceIT on Ubuntu. Related: NIFI-13885 and NIFI-15839.
The change tracks revision updates that are in progress and skips the check
while one is. It then requires the node to be ahead on two consecutive checks
before requesting a reconnect.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)