[ https://issues.apache.org/jira/browse/NIFI-7450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Truong Duc Kien updated NIFI-7450: ---------------------------------- Component/s: Core Framework Affects Version/s: 1.11.4 > 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 > Components: Core Framework > Affects Versions: 1.11.4 > Reporter: Truong Duc Kien > Priority: Major > > 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)