You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Destroying rdkafka adds 100 ms latency due to rdkafka_broker.c line of code rd_usleep(100*1000/*100ms*/, &rk->rk_terminate); Those changes were made in 1c044abc59063fab56001d016b44d54374a67b2a commit with message about memory leak. Is there any way of avoiding these 100 ms sleep or I am hitting it due to some misconfiguration?
How to reproduce
Bring up environment with docker and docker-compose as follows:
I don't think that sleep is necessary any more, it was there to protect from a tight reconnect loop on protocol errors, but we have reconnect.backoff.jitter.ms to slow things down instead.
Description
Destroying rdkafka adds 100 ms latency due to
rdkafka_broker.c
line of coderd_usleep(100*1000/*100ms*/, &rk->rk_terminate);
Those changes were made in1c044abc59063fab56001d016b44d54374a67b2a
commit with message about memory leak. Is there any way of avoiding these 100 ms sleep or I am hitting it due to some misconfiguration?How to reproduce
rd_rkb_dbg(rkb, GENERIC, "SLEEP", "Sleeping for 100 ms");
before https://github.com/edenhill/librdkafka/blob/master/src/rdkafka_broker.c#L3562 to verify that we are hitting that condition.rdkafka_simple_producer.c
cd ${LIBRDKAFKA_DIR}/examples && make rdkafka_simple_producer
time ./rdkafka_simple_producer 127.0.0.1 test
Checklist
Please provide the following information:
v.0.11.5
1.0.0
debug=all
Ubuntu 16.04.1
debug=..
as necessary) from librdkafkalibrdkafka.log
brokers.log
The text was updated successfully, but these errors were encountered: