NIFI-8163: When counting number of components, we traverse into all Process 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.
This commit is contained in:
Mark Payne 2021-01-21 13:08:10 -05:00 committed by Nathan Gough
parent 76648bdc0b
commit f2a16cd02e
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ public final class StandardProcessGroup implements ProcessGroup {
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()) {