jolshan commented on code in PR #13391: URL: https://github.com/apache/kafka/pull/13391#discussion_r1162045551
########## core/src/main/scala/kafka/server/KafkaRequestHandler.scala: ########## @@ -35,6 +36,43 @@ trait ApiRequestHandler { def handle(request: RequestChannel.Request, requestLocal: RequestLocal): Unit } +object KafkaRequestHandler { + // Support for scheduling callbacks on a request thread. + private val threadRequestChannel = new ThreadLocal[RequestChannel] + private val currentRequest = new ThreadLocal[RequestChannel.Request] + + // For testing + private var bypassThreadCheck = false Review Comment: We can make it volatile, but this is only really used in tests. -- 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