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

Use polls with Duration instead of plain milliseconds to avoid blocking on metadata receive #133

Merged
merged 2 commits into from
Dec 16, 2022

Conversation

andsel
Copy link
Contributor

@andsel andsel commented Dec 12, 2022

Release notes

What does this PR do?

Switches the consumer's poll from using the one that blocks on metadata retrieval to the one that doesn't.

Why is it important/What is the impact to the user?

Avoid the client to be hang when a connection drop during the retrieval of metadata.

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files (and/or docker env variables)
  • [ ] I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@andsel andsel force-pushed the fix/use_polls_with_duration branch from 38155ea to cd7f4e2 Compare December 16, 2022 14:42
@andsel andsel marked this pull request as ready for review December 16, 2022 14:46
@andsel andsel requested a review from robbavey December 16, 2022 16:03
Copy link

@roaksoax roaksoax left a comment

Choose a reason for hiding this comment

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

LGTM!

@andsel andsel merged commit 5613e3e into logstash-plugins:main Dec 16, 2022
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.

Avoid use of deprecated poll(long) method using Kafka 2.x
2 participants