mjsax commented on code in PR #20693:
URL: https://github.com/apache/kafka/pull/20693#discussion_r2501379517
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/PartitionGroup.java:
##########
@@ -112,40 +112,40 @@ boolean readyToProcess(final long wallClockTime) {
bufferedPartitions,
emptyPartitions);
}
- return true;
+ return new ReadyToProcessResult(true, Optional.empty());
}
final Set<TopicPartition> queued = new HashSet<>();
Map<TopicPartition, Long> enforced = null;
+ final StringBuilder logMessageBuilder = new StringBuilder();
for (final Map.Entry<TopicPartition, RecordQueue> entry :
partitionQueues.entrySet()) {
final TopicPartition partition = entry.getKey();
final RecordQueue queue = entry.getValue();
-
if (!queue.isEmpty()) {
// this partition is ready for processing
+ logger.trace("Partition {} has buffered data, ready for
processing", partition);
idlePartitionDeadlines.remove(partition);
queued.add(partition);
} else {
final Long fetchedLag = fetchedLags.getOrDefault(partition,
-1L);
-
- logger.trace("Fetched lag for {} is {}", partition,
fetchedLag);
-
+ appendLog(logMessageBuilder, String.format("Partition %s has
fetched lag for %d", partition, fetchedLag));
Review Comment:
```suggestion
appendLog(logMessageBuilder, String.format("Partition %s has
fetched lag of %d", partition, fetchedLag));
```
--
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]