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)