rondagostino opened a new pull request #10005: URL: https://github.com/apache/kafka/pull/10005
`Partition` objects are able to retrieve topic configs when creating their log, and currently they do so via ZooKeeper. ZooKeeper is not available when using the Raft-based metadata log, so we need to abstract the retrieval of configs so it can work either with or without ZooKeeper. This PR introduces `trait ConfigRepository` with `ZkConfigRepository` and `LocalConfigRepository` implementations. `ReplicaManager` holds the instance, and `Partition` gets it from there. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org