jolshan opened a new pull request, #24092: URL: https://github.com/apache/kafka/pull/24092
In `KRaftMetadataCache`, `getPartitionLeaderEndpoint` returns empty when the previous leader is offline after the refactor. With this PR, the method now returns `noNode` when the leader partition exists, aligning with the original Scala implementation. Changes are covered by unit tests. Please feel free to review. Reviewers: Kevin Wu <[email protected]>, Justine Olshan <[email protected]> cherry-pick notes: 4.3 didn't yet convert some of the metadata files, so we don't have `MetadataCacheFixtures`. Because of this, I've updated the TransactionMarkerChannelManagerTest to not mock the specific metadata cache behavior. I've also updated KraftMetadataCacheTest. -- 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]
