bobpaulin commented on code in PR #11872:
URL: https://github.com/apache/nifi/pull/11872#discussion_r4556331611


##########
nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/components/connector/StandardConnectorRepository.java:
##########
@@ -280,27 +305,27 @@ public ConnectorSyncResult syncConnector(final 
VersionedConnector versionedConne
         }
 
         if (restoringTroubleshooting) {
-            final VersionedProcessGroup persistedManagedGroup = 
versionedConnector.getManagedProcessGroup();
-            if (persistedManagedGroup == null) {
+            try {
+                
connector.restoreTroubleshootingManagedFlow(versionedConnector);
+            } catch (final FlowUpdateException e) {
+                connector.markInvalid("Flow Synchronization Failure", 
e.getMessage());
+                return ConnectorSyncResult.failed(connector);
+            }
+        } else {
+            connector.restorePersistedManagedFlow(versionedConnector);

Review Comment:
   [Claude Opus 5.5] Fixed. Outside of Troubleshooting, the sync no longer 
restores the persisted flow for a Connector whose extension is present, so a 
rejoining node leaves the running processors alone. 
`ClusteredConnectorIT.testRunningConnectorSyncedOnReconnect` now also waits for 
the managed `GenerateFlowFile` processor to be RUNNING on the rejoined node, 
not just the Connector state.



-- 
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