-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Stream Enrich: use Kafka callback based API to detect failures to send messages #2974
Comments
alexanderdean
changed the title
Kafka exception on send are not catched correctly
Kafka exception on send are not caught correctly
Dec 1, 2016
Good catch! |
Closed
BenFradet
changed the title
Kafka exception on send are not caught correctly
Stream Enrich: Kafka exception on send are not caught correctly
Aug 10, 2017
BenFradet
changed the title
Stream Enrich: Kafka exception on send are not caught correctly
Stream Enrich: use Kafka callback based API to detect failures to send messages
Aug 10, 2017
oguzhanunlu
pushed a commit
to snowplow/stream-enrich
that referenced
this issue
May 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
KafkaProducer.send
is asynchronous and I don't know if that will fail directly. It seems you need to provide a callback to catch exceptions:https://kafka.apache.org/0100/javadoc/index.html?org/apache/kafka/clients/producer/KafkaProducer.html
(send method)
Fully non-blocking usage can make use of the Callback parameter to provide a callback that will be invoked when the request is complete.
vs
snowplow/2-collectors/scala-stream-collector/src/main/scala/com.snowplowanalytics.snowplow.collectors/scalastream/sinks/KafkaSink.scala
Line 82 in e977c97
The text was updated successfully, but these errors were encountered: