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


##########
nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/connectors/ConnectorTroubleshootingIT.java:
##########
@@ -113,6 +113,38 @@ public void testEnterAndExitTroubleshootingRestoresFlow() 
throws NiFiClientExcep
         assertConnectorState(connectorId, ConnectorState.RUNNING);
     }
 
+    /**
+     * A Connector may resolve value-derived flow state during its apply path 
rather than in the side-effect-free
+     * getActiveFlow. Exiting Troubleshooting must re-run the Connector's 
apply path so that derived state is
+     * recomputed onto the managed flow; restoring only the authoritative flow 
would leave a required, Parameter-bound
+     * processor property unresolved and the Connector INVALID and unable to 
start.
+     */
+    @Test
+    public void testExitTroubleshootingReappliesDerivedParameters() throws 
NiFiClientException, IOException, InterruptedException {

Review Comment:
   testExitTroubleshootingDiscardsManualEditsForNopConnector should cover that 
case



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