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

Why "consumer.each_message..." not looping indefinitely #953

Closed
drhuffman12 opened this issue Jul 7, 2022 · 1 comment
Closed

Why "consumer.each_message..." not looping indefinitely #953

drhuffman12 opened this issue Jul 7, 2022 · 1 comment

Comments

@drhuffman12
Copy link

drhuffman12 commented Jul 7, 2022

Maybe I'm doing something wrong; or maybe there is an issue?

  • Version of Ruby:
    $ ruby -v
    ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
    
  • Version of Kafka:
    $ bin/kafka-configs.sh --version
    2.4.1 (Commit:c57222ae8cd7866b)
    
  • Version of ruby-kafka:
    $ gem list | grep kafka
    ruby-kafka (1.5.0)
    

Please verify that the problem you're seeing hasn't been fixed by the current master of ruby-kafka.

  • I noticed that the latest release is 1.4.0. Is there a regression in the master branch (which is showing v 1.5.0) that caused this issue?
Steps to reproduce

Using the example at https://github.com/zendesk/ruby-kafka#consumer-groups, I see consumer.each_message(..) grab existing messages from the topic, then it just hangs.

I had the same kinda of issue when getting messages via kafka.each_message(...)

Expected outcome

The consumer should continuously receive messages.

Actual outcome

The consumer receives existing messages then stops receiving new messages.

See also

@github-actions
Copy link

Issue has been marked as stale due to a lack of activity.

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

No branches or pull requests

1 participant