bbende commented on code in PR #11965:
URL: https://github.com/apache/nifi/pull/11965#discussion_r4680323042


##########
nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/asset/StandardConnectorAssetSynchronizer.java:
##########
@@ -119,6 +131,69 @@ public void synchronize() {
         
restartConnectorsWithSynchronizedAssets(connectorsWithSynchronizedAssets);
     }
 
+    private Set<ConnectorNode> synchronizeFromElectedFlowNodes(final 
List<NodeIdentifier> sourceNodeIds) {
+        final Set<ConnectorNode> connectorsWithSynchronizedAssets = new 
HashSet<>();
+        final List<ConnectorNode> connectors = flowManager.getAllConnectors();
+
+        for (final NodeIdentifier sourceNodeId : sourceNodeIds) {
+            final AssetsRestApiClient assetsRestApiClient = new 
AssetsRestApiClient(webClientService, sourceNodeId.getApiAddress(), 
sourceNodeId.getApiPort(), properties.isHTTPSConfigured());
+
+            for (final ConnectorNode connector : connectors) {
+                final String connectorId = connector.getIdentifier();
+                final AssetsEntity sourceAssetsEntity = 
listConnectorAssetsWithRetry(assetsRestApiClient, connectorId, true);

Review Comment:
   Yes good call, will address



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to