Skip to content
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

message.send.max.retries question #118

Closed
ghost opened this issue May 15, 2014 · 6 comments
Closed

message.send.max.retries question #118

ghost opened this issue May 15, 2014 · 6 comments

Comments

@ghost
Copy link

ghost commented May 15, 2014

If I set message.send.max.retries=0 then if kafka is down, DeliveryReportCb is not called. Only a eventCb is called. I should suppose that message is deleted and deliveryReportCb is also called, so that the application knows which messages could not be send

@edenhill
Copy link
Contributor

Huhm, I cant reproduce this with rdkafka_example_cpp:

$ echo hi | examples/rdkafka_example_cpp -P -b nonexistent.local -t fox -p 0 -X topic.message.timeout.ms=2000 -X message.send.max.retries=0
% Created producer rdkafka#producer-0
% Produced message (2 bytes)
Waiting for 1
Waiting for 1
Waiting for 1
Message delivery for (2 bytes): hi
LOG-3-GETADDR: nonexistent.local:9092/bootstrap: Failed to resolve 'nonexistent.local:9092': Name or service not known

Can you show me how to reproduce?

There was a bug that made Message.errstr() return the payload rather than the error string, but thats fixed and probably unrelated.

@ghost
Copy link
Author

ghost commented May 15, 2014

What is topic.message.timeout.ms ? can't find information in
configuration.md

On Thu, May 15, 2014 at 1:48 PM, Magnus Edenhill
notifications@github.comwrote:

Huhm, I cant reproduce this with rdkafka_example_cpp:

$ echo hi | examples/rdkafka_example_cpp -P -b nonexistent.local -t fox -p 0 -X topic.message.timeout.ms=2000 -X message.send.max.retries=0
% Created producer rdkafka#producer-0
% Produced message (2 bytes)
Waiting for 1
Waiting for 1
Waiting for 1
Message delivery for (2 bytes): hi
LOG-3-GETADDR: nonexistent.local:9092/bootstrap: Failed to resolve 'nonexistent.local:9092': Name or service not known

Can you show me how to reproduce?

There was a bug that made Message.errstr() return the payload rather than
the error string, but thats fixed and probably unrelated.


Reply to this email directly or view it on GitHubhttps://github.com//issues/118#issuecomment-43199971
.

@edenhill
Copy link
Contributor

It is "message.timeout.ms" in the topic configuration.
The example tools allow setting topic configuration properties by prefixing with "topic." (which are stripped before being supplide to rd_kafka_topic_conf_set())

@edenhill
Copy link
Contributor

I just used a lower timeout to avoid having to wait so long for the error

@ghost
Copy link
Author

ghost commented May 16, 2014

changing the message.timeout.ms value to a lower value.
It works now

On Thu, May 15, 2014 at 2:52 PM, Magnus Edenhill
notifications@github.comwrote:

I just used a lower timeout to avoid having to wait so long for the error


Reply to this email directly or view it on GitHubhttps://github.com//issues/118#issuecomment-43205048
.

@edenhill
Copy link
Contributor

Great! So what you were seeing was the message waiting to time out because
of the high default timeout value. You would eventually get the error.
Den 16 maj 2014 08:30 skrev "herc6" notifications@github.com:

changing the message.timeout.ms value to a lower value.
It works now

On Thu, May 15, 2014 at 2:52 PM, Magnus Edenhill
notifications@github.comwrote:

I just used a lower timeout to avoid having to wait so long for the
error


Reply to this email directly or view it on GitHub<
https://github.com/edenhill/librdkafka/issues/118#issuecomment-43205048>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/118#issuecomment-43301258
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant