awelless commented on code in PR #10526:
URL: https://github.com/apache/nifi/pull/10526#discussion_r2523996016


##########
nifi-extension-bundles/nifi-aws-bundle/nifi-aws-kinesis/src/main/java/org/apache/nifi/processors/aws/kinesis/ConsumeKinesis.java:
##########
@@ -560,6 +566,12 @@ private void shutdownScheduler() {
 
     @Override
     public void onTrigger(final ProcessContext context, final ProcessSession 
session) throws ProcessException {
+        if (errorListener.holdsInitializationFailure()) {
+            getLogger().error("Failed to initialize the processor. Correct the 
error and restart the processor.", errorListener.failure());
+            context.yield();

Review Comment:
   If a scheduler failed to initialize, there is no way to recover 
automatically. 
   My concern with this approach is that a default value for yield is 100 ms, 
which may spam too many same bulletins from the processor.



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