bobpaulin commented on code in PR #11872:
URL: https://github.com/apache/nifi/pull/11872#discussion_r4484544548
##########
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:
Will verify this with a System Test. Agree this should be fixed if verified.
--
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]