exceptionfactory commented on a change in pull request #5514:
URL: https://github.com/apache/nifi/pull/5514#discussion_r751383677



##########
File path: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/flow/PopularVoteFlowElection.java
##########
@@ -141,7 +142,7 @@ public synchronized DataFlow castVote(final DataFlow 
candidate, final NodeIdenti
     }
 
     private String fingerprint(final DataFlow dataFlow) {
-        final String flowFingerprint = 
fingerprintFactory.createFingerprint(dataFlow.getFlow());
+        final String flowFingerprint = 
DigestUtils.sha256Hex(dataFlow.getFlow());

Review comment:
       With the change to flow fingerprinting, the `FingerprintFactory` no 
longer appears to be used in this class or elsewhere. Should the 
FingerprintFactory class be removed?  At minimum, it looks like the instance 
can be removed from this class.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to