Joe Witt created NIFI-16664:
-------------------------------
Summary: Node offload can hang when a disconnected node
regenerates its own status with a newer update id
Key: NIFI-16664
URL: https://issues.apache.org/jira/browse/NIFI-16664
Project: Apache NiFi
Issue Type: Bug
Reporter: Joe Witt
Assignee: Joe Witt
When the disconnected node is also the Cluster Coordinator, a heartbeat sent
just before it disconnected can reach its own heartbeat monitor. The monitor
calls requestNodeDisconnect again, which replaces the DISCONNECTED status with
one that has a newer update id. Nothing is sent to other nodes because the
state did not change.
The newly elected coordinator only knows the earlier status. It requests the
offload and creates an OFFLOADING status whose update id equals the last id it
received, because NodeConnectionStatus.updateIdGenerator raises the counter to
the received value without going past it. The disconnected node rejects that
status as older than its own.
The node never reports OFFLOADED, so OffloadIT.testOffload timed out after 10
minutes on both Ubuntu jobs of run 46850229270. The fix makes a repeated
disconnect request with the same code and reason leave the existing status
unchanged. It also makes locally created statuses always have a higher update
id than any received one.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)