Coder Social home page Coder Social logo

Comments (3)

joekiller avatar joekiller commented on July 19, 2024

Email replies seem delayed so please pardon a double post...

This implementation follows how Kafka does it in their code as well. A zookeeper znode can only be deleted if no one else has it opened so it gracefully fails if another consumer is registered.

See here: https://github.com/apache/kafka/blob/0.8.1/core/src/main/scala/kafka/consumer/ConsoleConsumer.scala#L181

from jruby-kafka.

joekiller avatar joekiller commented on July 19, 2024

This implementation follows how Kafka does it in their code as well. A
zookeeper znode can only be deleted if no one else has it opened so it
gracefully fails if another consumer is registered.

See here:
https://github.com/apache/kafka/blob/0.8.1/core/src/main/scala/kafka/consumer/ConsoleConsumer.scala#L181

We should be consistent with Kafka consumer behavior defined in
http://kafka.apache.org/documentation.html#consumerconfigs

when auto.offset.reset = smallest.

The documentation mentions setting is applied only when ZK path is
missing or when an offset requested is not found in ZK. In contrary, we
delete the offset when this setting is applied which is dangerous.

See
https://github.com/joekiller/jruby-kafka/blob/master/lib/jruby-kafka/group.rb#L161

Happy to provide a patch for this


Reply to this email directly or view it on GitHub
#7.

from jruby-kafka.

suyograo avatar suyograo commented on July 19, 2024

@joekiller Thanks for the clarification.

from jruby-kafka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.