Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the consumer.close() graceful #1811

Open
jeffwidman opened this issue May 23, 2019 · 0 comments
Open

Make the consumer.close() graceful #1811

jeffwidman opened this issue May 23, 2019 · 0 comments
Labels

Comments

@jeffwidman
Copy link
Contributor

KafkaConsumer was originally written based on 0.9.0 Java code.

I noticed the Kafka release notes for 0.10.2 says:

Java consumer now shuts down gracefully. By default, the consumer waits up to 30 seconds to complete pending requests. A new close API with timeout has been added to KafkaConsumer to control the maximum wait time.

This should be investigated to see if it needs to be added to KafkaConsumer.

What we want to make sure is that the consumers issue LeaveGroupRequest in all situations so that the remaining consumers can rebalance faster rather than waiting for this closed consumer to timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants