mjsax commented on code in PR #12363:
URL: https://github.com/apache/kafka/pull/12363#discussion_r910234367
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java:
##########
@@ -969,7 +972,9 @@ long pollPhase() {
final long bufferSize = taskManager.getInputBufferSizeInBytes();
// Pausing partitions as the buffer size now exceeds max buffer
size
if (bufferSize > maxBufferSizeBytes.get()) {
- log.info("Buffered records size {} bytes exceeds {}. Pausing
the consumer", bufferSize, maxBufferSizeBytes.get());
+ final Set<TopicPartition> nonEmptyPartitions =
taskManager.nonEmptyPartitions();
Review Comment:
nit: we can reuse `nonEmptyPartitions` in the `pause` call below
--
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]