pvillard31 commented on code in PR #10908:
URL: https://github.com/apache/nifi/pull/10908#discussion_r2921470910
##########
nifi-extension-bundles/nifi-kafka-bundle/nifi-kafka-processors/src/main/java/org/apache/nifi/kafka/processors/ConsumeKafka.java:
##########
@@ -425,77 +427,85 @@ public void onTrigger(final ProcessContext context, final
ProcessSession session
final OffsetTracker offsetTracker = new OffsetTracker();
boolean recordsReceived = false;
- while (System.currentTimeMillis() < stopTime) {
- try {
- final Duration maxWaitDuration = Duration.ofMillis(stopTime -
System.currentTimeMillis());
- if (maxWaitDuration.toMillis() <= 0) {
- break;
- }
+ rebalanceSessionHolder.session = session;
+ rebalanceSessionHolder.offsetTracker = offsetTracker;
Review Comment:
Thanks @markap14 - I pushed a commit to address your points
--
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]