anatasiavela commented on code in PR #13078: URL: https://github.com/apache/kafka/pull/13078#discussion_r1106571516
########## core/src/main/scala/kafka/log/ProducerStateManager.scala: ########## @@ -213,6 +216,19 @@ class ProducerStateManager( snapshots = loadSnapshots() } + @threadsafe + def producerIdCount: Int = _producerIdCount + + def updateProducerId(producerId: Long, entry: ProducerStateEntry): Unit = { + producers.put(producerId, entry) + _producerIdCount = producers.size + } + + def removeProducerIds(toBeRemoved: collection.Set[Long]): Unit = { Review Comment: no reason, they should be private -- 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