greyp9 commented on code in PR #7955:
URL: https://github.com/apache/nifi/pull/7955#discussion_r1376732467


##########
nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-2-6-processors/src/main/java/org/apache/nifi/processors/kafka/pubsub/ConsumeKafka_2_6.java:
##########
@@ -484,8 +484,10 @@ public void onTrigger(ProcessContext context, 
ProcessSession session) throws Pro
                     + "Will roll back session and discard any partially 
received data.", lease);
             } catch (final KafkaException kex) {
                 getLogger().error("Exception while interacting with Kafka so 
will close the lease {} due to {}", lease, kex, kex);
+                context.yield();

Review Comment:
   Processor should give a little time to service UI requests on connection 
failures.



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