mjsax commented on code in PR #12363:
URL: https://github.com/apache/kafka/pull/12363#discussion_r911238798


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java:
##########
@@ -797,8 +798,10 @@ void runOnce() {
                     totalProcessed += processed;
                     totalRecordsProcessedSinceLastSummary += processed;
                     final long bufferSize = 
taskManager.getInputBufferSizeInBytes();
-                    if (bufferSize <= maxBufferSizeBytes.get()) {
-                        mainConsumer.resume(mainConsumer.paused());
+                    if (bufferSize <= maxBufferSizeBytes.get() && 
!pausedPartitions.isEmpty()) {
+                        log.info("Buffered records size {} bytes falls below 
{}. Resuming all the paused partitions {} in the consumer",
+                            bufferSize, maxBufferSizeBytes.get(), 
pausedPartitions);
+                        mainConsumer.resume(pausedPartitions);

Review Comment:
   Not sure if I can follow? `pausedPartitions` is a local variable and it 
scopes end right after this block.



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