chia7712 commented on code in PR #24239:
URL: https://github.com/apache/kafka/pull/24239#discussion_r4646165855


##########
clients/src/main/java/org/apache/kafka/common/record/internal/DefaultRecordBatch.java:
##########
@@ -317,6 +315,13 @@ public void close() {}
         };
     }
 
+    /**
+     * Retained for compatibility with {@link Iterable}.
+     *
+     * @deprecated Use {@link #streamingIterator(BufferSupplier)} and close 
the returned iterator
+     *             to avoid collecting compressed records into an intermediate 
list.
+     */
+    @Deprecated

Review Comment:
   Since this is an internal class, we could just drop it and see what happens 
:)



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