You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (Jira)" <ji...@apache.org> on 2020/01/30 18:39:00 UTC

[jira] [Created] (NIFI-7087) Framework should use FlowManager.findAllConnections() when available

Matt Burgess created NIFI-7087:
----------------------------------

             Summary: Framework should use FlowManager.findAllConnections() when available
                 Key: NIFI-7087
                 URL: https://issues.apache.org/jira/browse/NIFI-7087
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
            Reporter: Matt Burgess


Many places in the framework the entire list of Connections is needed, and sometimes the list is assembled by recursively collecting all the Connections for each child process group. This can be an expensive operation, especially since FlowManager keeps a Set of all Connections. It is noticeable in ConnectionStatusAnalytics for example.

Whenever a FlowManager object is available to a class that retrieves all Connections, it should use FlowManager.findAllConnections() rather than rootGroup.findAllConnections().



--
This message was sent by Atlassian Jira
(v8.3.4#803005)