jsancio commented on a change in pull request #11216:
URL: https://github.com/apache/kafka/pull/11216#discussion_r690455391
##########
File path: core/src/test/scala/integration/kafka/server/KRaftClusterTest.scala
##########
@@ -410,6 +421,32 @@ class KRaftClusterTest {
}
}
+ private def checkReplicaManager(cluster: KafkaClusterTestKit,
expectedHosting: List[(Int, List[Boolean])]): Unit = {
+ for ((brokerId, partitionsIsHosted) <- expectedHosting) {
+ val broker = cluster.brokers().get(brokerId)
+ // lock and unlock so we can read the replica manager
Review comment:
I cleaned this up by just making `var replicaManager` volatile.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]