muralibasani commented on code in PR #22458:
URL: https://github.com/apache/kafka/pull/22458#discussion_r3351602488


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/PartitionGroup.java:
##########
@@ -250,10 +256,13 @@ StampedRecord nextRecord(final RecordInfo info, final 
long wallClockTime) {
         if (queue != null) {
             // get the first record from this queue.
             final int oldSize = queue.size();
+            final long oldBytes = queue.getTotalBytesBuffered();
             record = queue.poll(wallClockTime);
+            final long newBytes = queue.getTotalBytesBuffered();

Review Comment:
   Read again, so the delta can be applied. poll may substract head rec and may 
be any corrupted recs



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