abbccdda commented on a change in pull request #9103:
URL: https://github.com/apache/kafka/pull/9103#discussion_r509645115



##########
File path: core/src/main/scala/kafka/network/SocketServer.scala
##########
@@ -974,8 +973,39 @@ private[kafka] class Processor(val id: Int,
                 val context = new RequestContext(header, connectionId, 
channel.socketAddress,
                   channel.principal, listenerName, securityProtocol,
                   channel.channelMetadataRegistry.clientInformation, 
isPrivilegedListener)
-                val req = new RequestChannel.Request(processor = id, context = 
context,
-                  startTimeNanos = nowNanos, memoryPool, receive.payload, 
requestChannel.metrics)
+
+                val principalSerde = 
Option(channel.principalSerde.orElse(null))

Review comment:
       Had a try but it seems java Optional doesn't have an `asScala` option




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

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


Reply via email to