Skip to content

Conversation

yanivnahoum
Copy link
Contributor

Fixes #3375: ExtendedKafkaConsumer now overrides close() in order to make sure listener.consumerRemoved() is called when the consumer is closed

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add your name to the @author list of all the effected classes.

assertThat(removals).isEmpty();
if (closeWithTimeout) {
consumer.close(Duration.ofSeconds(10));
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code style is else on a new line.

Please, run ./gradlew check locally and fix all the errors before pushing into the PR.

…n order to make sure listener.consumerRemoved() is called when the consumer is closed
@yanivnahoum yanivnahoum requested a review from artembilan July 23, 2024 06:14
@sobychacko sobychacko self-assigned this Jul 23, 2024
@sobychacko sobychacko merged commit 1f93c6a into spring-projects:main Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KafkaConsumer.close() no longer triggers the DefaultKafkaConsumerFactory.listener.removeConsumer()
3 participants