Comments (5)
2.2.2.2:9092 is not answering and thus the TCP connectioning is waiting in the CONNECT state waiting for a positive or negative reply from the remote host - but since there is no such host the connection attempt will have to timeout.
If you wait for a couple of minutes I think you will get a timeout error.
from librdkafka.
If request.required.acks != 0 (defaults to 1) the message will eventually timeout and you will get a delivery report.
from librdkafka.
Thank you, but is there any method to wait for connection (for x ms) and then to produce a message?
from librdkafka.
rdkafka tries to remove all that logic from the client.
All the client needs to do is say where the brokers can be reached and then
start producing or consuming messages:
rdkafka will handle everything else; connects, disconnects, errors, etc.
If the broker is not available or takes time to connect to the messages
will be queued locally inside rdkakfa for "message.timeout.ms", eventually
sending the
message when the broker becomes available, or timing out the message when
the timeout is reached.
This async approach provides high throughput and makes the application's
design easier since it does not need check or maintain any state for the
kafka cluster.
What the application may do is register an err_cb to receive error reports
from librdkafka.
Connection failures are reported with error code
RD_KAFKA_RESP_ERR__TRANSPORT.
2014/1/10 Aleksandar Babic [email protected]
Thank you, but is there any method to wait for connection (for x ms) and
then to produce a message?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/59#issuecomment-32035459
.
from librdkafka.
Thanks a lot, I learned a lot from you and your code. ;)
from librdkafka.
Related Issues (20)
- adminClient describeConsumerGroups leads to python: rdkafka_queue.h:1052: rd_kafka_enq_once_del_source_return: Assertion `eonce->refcnt > 0' failed. HOT 2
- Producer never reconnects to broker HOT 3
- ListOffsets loop of failed requests on leader epoch change until timeout happens HOT 3
- Question: Can event_cb be called on a stopped producer/consumer? HOT 1
- Data race in `rd_kafka_broker_timeout_scan`
- rd_kafka_produceva: double free headers on message sending error HOT 2
- coop sticky algo on large partition number HOT 1
- Duplicate messages could be received when resuming partitions that weren't paused
- Some components use `strcmp` which is vulnerable to timing attacks
- Timeout overflows when over 2047.48
- Crash in rd_kafka_broker_add_logical HOT 1
- Reading committed offsets where metadata contains null byte leads to reading random data after null byte.
- zlib library security vulnerability through to version 1.3
- when using librdkafka, create a thread will fail.
- Unable to connect C++ consumer client with OAUTHBEARER mechanism to server HOT 1
- query_watermark_offsets() Doesn't Return Authentication Failure Errors.
- Critical Vulnerabilities identified in librdkafka HOT 3
- Pr 1
- Sporadic crash in rd_kafka_buf_callback()
- Starting with 8e20e1ee, after broker goes down and back up, `rd_kafka_destroy` of groupconsumer hangs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librdkafka.