hachikuji commented on code in PR #12108: URL: https://github.com/apache/kafka/pull/12108#discussion_r868364470
########## core/src/main/scala/kafka/server/metadata/BrokerMetadataPublisher.scala: ########## @@ -118,6 +118,11 @@ class BrokerMetadataPublisher(conf: KafkaConfig, */ var _firstPublish = true + /** + * This is updated after all components (e.g. LogManager) has finished publishing the new metadata delta + */ + var publishedOffset: Long = -1 Review Comment: I wonder if we should make this an AtomicLong so that it is safe to access from other threads? -- 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