jolshan commented on code in PR #14629: URL: https://github.com/apache/kafka/pull/14629#discussion_r1378272592
########## core/src/main/scala/kafka/server/ReplicaManager.scala: ########## @@ -864,6 +781,111 @@ class ReplicaManager(val config: KafkaConfig, } } + /* + * Note: This method can be used as a callback in a different request thread. Ensure that correct RequestLocal + * is passed when executing this method. Accessing non-thread-safe data structures should be avoided if possible. + */ + private def appendEntries(allEntries: Map[TopicPartition, MemoryRecords], + internalTopicsAllowed: Boolean, + origin: AppendOrigin, + requiredAcks: Short, + verificationGuards: Map[TopicPartition, VerificationGuard], + errorsPerPartition: Map[TopicPartition, Errors], + sTime: Long, + recordConversionStatsCallback: Map[TopicPartition, RecordConversionStats] => Unit, + timeout: Long, + responseCallback: Map[TopicPartition, PartitionResponse] => Unit, + delayedProduceLock: Option[Lock]) + (requestLocal: RequestLocal) Review Comment: Jason helped me with Scala offline. -- 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