mirror of https://github.com/apache/nifi.git
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:
parent
76648bdc0b
commit
f2a16cd02e
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue