Parkerhiphop commented on code in PR #19374:
URL: https://github.com/apache/kafka/pull/19374#discussion_r2031577526


##########
core/src/main/scala/kafka/network/SocketServer.scala:
##########
@@ -97,7 +97,7 @@ class SocketServer(
   private val memoryPool = if (config.queuedMaxBytes > 0) new 
SimpleMemoryPool(config.queuedMaxBytes, config.socketRequestMaxBytes, false, 
memoryPoolSensor) else MemoryPool.NONE
   // data-plane
   private[network] val dataPlaneAcceptors = new ConcurrentHashMap[EndPoint, 
DataPlaneAcceptor]()
-  val dataPlaneRequestChannel = new RequestChannel(maxQueuedRequests, 
DataPlaneAcceptor.MetricPrefix, time, apiVersionManager.newRequestMetrics)

Review Comment:
   Updated: I’m not sure if we should replace the 
`DataPlaneAcceptor#threadPrefix()` method with the constant 
`DataPlaneAcceptor#ThreadPrefix`, since `threadPrefix()` is used within the 
Acceptor interface. 
   
   It seems that Acceptor shouldn’t directly rely on constants defined in its 
child class (DataPlaneAcceptor), as the comment below suggests.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to