[ 
https://issues.apache.org/jira/browse/NIFI-16664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18155259#comment-18155259
 ] 

ASF subversion and git services commented on NIFI-16664:
--------------------------------------------------------

Commit 99f0fd37b15c81e092781f9f8a7d03f842be4b7f in nifi's branch 
refs/heads/main from Joe Witt
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=99f0fd37b15 ]

NIFI-16664 Corrected node status update identifiers to prevent offload hang 
(#11995)

- Changed requestNodeDisconnect to keep the existing status when a node is 
already disconnected for the same code and reason
- Changed NodeConnectionStatus.updateIdGenerator to make the next update 
identifier greater than the received identifier
- Added tests for repeated disconnect requests, update identifier ordering, and 
offload after a repeated disconnect request

> 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
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to