nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Burgess (Jira)" <j...@apache.org>
Subject [jira] [Created] (NIFI-7087) Framework should use FlowManager.findAllConnections() when available
Date Thu, 30 Jan 2020 18:39:00 GMT
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)

Mime
View raw message