dajac commented on code in PR #14885:
URL: https://github.com/apache/kafka/pull/14885#discussion_r1413633150


##########
core/src/main/scala/kafka/coordinator/group/CoordinatorPartitionWriter.scala:
##########
@@ -66,6 +65,10 @@ class CoordinatorPartitionWriter[T](
   compressionType: CompressionType,
   time: Time
 ) extends PartitionWriter[T] {
+  private val threadLocalBufferSupplier = ThreadLocal.withInitial(
+    () => new BufferSupplier.GrowableBufferSupplier()
+  )

Review Comment:
   1. Yes.
   2. Yes.
   3. Yes.
   4. Each thread must have its own buffer as a given buffer cannot be used by 
two threads at the same time.



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