showuon commented on a change in pull request #10794:
URL: https://github.com/apache/kafka/pull/10794#discussion_r642748185



##########
File path: 
core/src/main/scala/kafka/server/BrokerToControllerChannelManager.scala
##########
@@ -363,6 +386,22 @@ class BrokerToControllerRequestThread(
     }
   }
 
+  def maybeCheckNotControllerErrorInsideEnvelopeResponse(requestHeader: 
RequestHeader, responseBody: AbstractResponse): Boolean = {

Review comment:
       Yes, I tried, but it can't. The `activeController` is stored in 
`BrokerToControllerRequestThread`, which owned by 
`BrokerToControllerChannelManager`. So, only the 
`BrokerToControllerRequestThread#handleResponse` can update the 
activeController and put the reqeust into top of the queue again (retry).




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