rondagostino opened a new pull request #10069: URL: https://github.com/apache/kafka/pull/10069
This adds the logic to apply partition metadata when consuming from the Raft-based metadata log. `RaftReplicaManager` extends `ReplicaManager` for now to minimize changes to existing code for the 2.8 release. We will likely adjust this hierarchy at a later time (e.g. introducing a trait and adding a helper to refactor common code). For now, we expose the necessary fields and methods in `ReplicaManager` by changing their scope from `private` to `protected`, and we refactor out a couple of pieces of logic that are shared between the two implementation (stopping replicas and adding log dir fetchers). Existing tests are sufficient to expose regressions in the current `ReplicaManager`. We intend to exercise the new `RaftReplicaManager` code via system tests and unit/integration tests (both to come in later PRs). ### 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: [email protected]
