rittikaadhikari commented on code in PR #12005:
URL: https://github.com/apache/kafka/pull/12005#discussion_r885879685


##########
core/src/main/scala/kafka/server/AbstractFetcherManager.scala:
##########
@@ -68,7 +68,7 @@ abstract class AbstractFetcherManager[T <: 
AbstractFetcherThread](val name: Stri
         if (id.fetcherId >= newSize)
           thread.shutdown()
         partitionStates.forKeyValue { (topicPartition, currentFetchState) =>
-            val initialFetchState = 
InitialFetchState(currentFetchState.topicId, thread.sourceBroker,
+            val initialFetchState = 
InitialFetchState(currentFetchState.topicId, thread.leader.brokerEndPoint(),

Review Comment:
   I get this error when I try omitting the parentheses: ```Auto-application to 
`()` is deprecated. Supply the empty argument list `()` explicitly to invoke 
method brokerEndPoint, or remove the empty argument list from its definition```



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