Skip to content

Phobos issues in 0.5.x of Ruby Kafka #484

@klippx

Description

@klippx

We have an issue with ruby kafka >= 0.5.0 in Phobos that we might need your help to investigate, see phobos/phobos#48

We realize that this is our problem, and we have the workaround to lock < 0.5.0 of Ruby Kafka, but we think you might have seen something similar and can help put us on the right track. I guess the outcome can be either of two things

  • There is a bug in ruby kafka that our tests helped expose
  • There is a migration path from 0.4.x to 0.5x that we haven't observed

So... Anyway, here is the report and steps to reproduce.

  • Version of Ruby: 2.4.1
  • Version of Kafka: 0.10.2.0
  • Version of ruby-kafka: 0.5.0+
Steps to reproduce
  1. Clone https://github.com/klarna/phobos
  2. In the gemspec, remove the locking of ruby-kafka to allow 0.5.1 to be installed
  3. Run docker-compose up -d --force-recreate kafka zookeeper to start dependencies
  4. Run docker-compose build test to build test container
  5. Run docker-compose run --rm test bundle exec rspec

Many listeners spec will fail with

     IOError:
       closed stream
Expected outcome

Tests should be green, right now we have to lock < 0.5.0 of Ruby Kafka.

Actual outcome

Tests are red (listener tests only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions