Skip to content

Commit

Permalink
NIFI-8163: When counting number of components, we traverse into all P…
Browse files Browse the repository at this point in the history
…rocess Groups, but then call findAllRemoteProcessGroups, which is a recursive call, instead of calling getRemoteProcessGroups(). This results in counting the Process Groups many times. So fixed that.

Signed-off-by: Nathan Gough <thenatog@gmail.com>

This closes #4775.
  • Loading branch information
markap14 authored and thenatog committed Jan 21, 2021
1 parent 76648bd commit f2a16cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public ProcessGroupCounts getCounts() {
syncFailure += childCounts.getSyncFailureCount();
}

for (final RemoteProcessGroup remoteGroup : findAllRemoteProcessGroups()) {
for (final RemoteProcessGroup remoteGroup : getRemoteProcessGroups()) {
// Count only input ports that have incoming connections
for (final Port port : remoteGroup.getInputPorts()) {
if (port.hasIncomingConnection()) {
Expand Down

0 comments on commit f2a16cd

Please sign in to comment.