Git Product home page Git Product logo

Comments (8)

ronin avatar ronin commented on May 18, 2024 1

Sync

from waterdrop.

mensfeld avatar mensfeld commented on May 18, 2024

Async or sync publishing?

from waterdrop.

mensfeld avatar mensfeld commented on May 18, 2024

@paneq p e.cause - this should contain the raw details on why wasn't delivered. Does it work?

from waterdrop.

paneq avatar paneq commented on May 18, 2024

@mensfeld

Unfortunately, it does not. e.cause is nil.

from waterdrop.

paneq avatar paneq commented on May 18, 2024

Replication procedure:

WaterDrop.setup do |config|
  config.deliver = true
  config.client_id = "my-app-waterdrop"
  config.kafka.seed_brokers = ["kafka://127.0.0.1:9092"]

  config.kafka.ssl_ca_certs_from_system = false
  config.kafka.sasl_over_ssl = false
  config.kafka.sasl_plain_username = "edward"
  config.kafka.sasl_plain_password = "edward"
end


WaterDrop::SyncProducer.call('message', topic: 'unexisting')
# => Failed to assign partitions to 1 messages (Kafka::DeliveryFailed)

compare that with:

kafka = Kafka.new(
	["127.0.0.1:9092"], 
	client_id: "my-application",
	sasl_plain_username: 'edward',
        sasl_plain_password: 'edward',
	sasl_over_ssl: false,
)

kafka.deliver_message("message", topic: "unexisting")
# => Kafka::TopicAuthorizationFailed

and that should suffice.

FYI: Authentication and authorization is configured here: https://github.com/paneq/kafka_docker_sasl_plain/blob/master/test.yml#L23L36

If something does not work, let me know.

from waterdrop.

mensfeld avatar mensfeld commented on May 18, 2024

I can confirm. Investigating and fixing...

from waterdrop.

mensfeld avatar mensfeld commented on May 18, 2024

This is a mismatch in between how delivery boy works and how ruby-kafka client works. It won't be fixed due to #106

For rdkafka there's a issue reported: karafka/rdkafka-ruby#92

from waterdrop.

mensfeld avatar mensfeld commented on May 18, 2024

I will close it. This should be fixed in librdkafka and we're moving out from ruby-kafka.

from waterdrop.

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.