arnabnandy7 opened a new pull request, #23351: URL: https://github.com/apache/kafka/pull/23351
## Description KAFKA-20880: This change resolves the inconsistency in the `StandbyUpdateListener` API by adding an `onBatchLoaded` overload without the `TaskId` parameter. The existing overload is deprecated and delegates to the new method. This compatibility bridge allows existing implementations that override the deprecated overload to continue receiving callbacks, while new implementations can use the simplified overload. Kafka’s internal callback path remains unchanged during the compatibility window. The Kafka Streams developer guide, upgrade guide, and test listener implementations are updated to use and document the new overload. ## Testing Existing `StoreChangelogReaderTest` coverage exercises the compatibility bridge through `MockStandbyUpdateListener`. Static validation: ```text git diff --check ``` No behavior outside listener callback dispatch is changed. Reviewers: Matthias J. Sax -- 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]
