[
https://issues.apache.org/jira/browse/NIFI-14959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18019943#comment-18019943
]
Michael W Moser commented on NIFI-14959:
----------------------------------------
Does this mean a 2-node NiFi cluster does not load balance at all when a load
balanced connection is set to "Partition by attribute"?
Does a 3-node NiFi cluster only load balance to 2 nodes in this mode?
> CorrelationAttributePartitioner.findIndex always returns 0 if partitions == 2
> -----------------------------------------------------------------------------
>
> Key: NIFI-14959
> URL: https://issues.apache.org/jira/browse/NIFI-14959
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Andreas Koch
> Priority: Major
>
> Ways to reproduce. Added static to findIndex
>
> {code:java}
> for (int i = Integer.MIN_VALUE; i < Integer.MAX_VALUE; i++) {
> int idx = findIndex(i, 2);
> if (idx != 0) {
> System.out.println(i);
> }
> } {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)