Truong Duc Kien created NIFI-7450:
-------------------------------------

             Summary: Slow vote flow election due to coarse locking
                 Key: NIFI-7450
                 URL: https://issues.apache.org/jira/browse/NIFI-7450
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Truong Duc Kien


Synchronized locks in \{{ PopularVoteFlowElection::castVote }} and  \{{ 
FingerprintFactory::createFingerprint }} create a congestion, since only 1 note 
can calculate fingerprint and vote at a time during flow election process. For 
large flow, creating fingerprint can take a long time, which means only a few 
nodes can cast their vote before election time expires in large cluster.

 

[https://github.com/apache/nifi/blob/9608fe33fa4a3f39ee6ddca54184ccc85ef1a163/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/flow/PopularVoteFlowElection.java#L119]

 

[https://github.com/apache/nifi/blob/9608fe33fa4a3f39ee6ddca54184ccc85ef1a163/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/fingerprint/FingerprintFactory.java#L130]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to