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


##########
nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/components/connector/StandardConnectorRepository.java:
##########
@@ -711,7 +878,25 @@ private void waitForState(final ConnectorNode connector, 
final Set<ConnectorStat
         int iterations = 0;
         final long startNanos = System.nanoTime();
         while (true) {
-            final ConnectorState clusterState = 
requestReplicator.getState(connector.getIdentifier());
+            final ConnectorState clusterState;
+            try {
+                clusterState = 
requestReplicator.getState(connector.getIdentifier());
+            } catch (final RuntimeException e) {
+                // A connector that resumes during startup reaches this 
barrier before every node has joined.
+                // Replication then fails, or reports only the nodes that are 
already connected. That is not an evolution failure; wait and retry.

Review Comment:
   [Claude Opus 5.5] Fixed. The comment now describes the actual case: a 
Connector that resumes during startup reaches this barrier before every node 
has joined.



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