Skip to content

Fix KafkaConsumer.poll() with zero timeout #2613

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

Merged
merged 3 commits into from
May 4, 2025
Merged

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented May 4, 2025

Currently consumer.poll() will not make progress unless a non-zero timeout is provided. This PR switches to a Timer class and updates code paths to allow (non-blocking) progress when timeout is 0.

Fix #2609

@dpkp dpkp force-pushed the dpkp/consumer-poll-zero branch from f307054 to 2d98d0d Compare May 4, 2025 02:03
@dpkp dpkp merged commit 2f282eb into master May 4, 2025
18 checks passed
@dpkp dpkp deleted the dpkp/consumer-poll-zero branch May 4, 2025 02:39
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.

Kafka consumer not reading any message with zero timeout_ms poll value
1 participant