You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Truong Duc Kien (JIRA)" <ji...@apache.org> on 2018/12/05 12:06:00 UTC
[jira] [Created] (NIFI-5870) Possible race condition when receiving
flow files from peers during load balancing.
Truong Duc Kien created NIFI-5870:
-------------------------------------
Summary: Possible race condition when receiving flow files from peers during load balancing.
Key: NIFI-5870
URL: https://issues.apache.org/jira/browse/NIFI-5870
Project: Apache NiFi
Issue Type: Bug
Reporter: Truong Duc Kien
The queue size should always be adjusted before FlowFiles are added into the local partition, as explained in the method \{{putAllAndGetPartitions}} . However, the method \{{receiveFromPeer}} is doing it backward.
https://github.com/apache/nifi/blob/234ddb0fe1a36ad947c340114058d82c777d791f/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/SocketLoadBalancedFlowFileQueue.java#L772
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)