rdkafka-dotnet icon indicating copy to clipboard operation
rdkafka-dotnet copied to clipboard

Deadlocking with high number of sends

Open rogeralsing opened this issue 7 years ago • 2 comments

for (int i = 0; i < 100000; i++)
{
       var data = Encoding.UTF8.GetBytes("hello");
       topic.Produce(data);
}

Running the above snippet a few times make the client deadlock. (It doesnt occur right away, I usually have to run this a few times)

I'm not sure what is causing this, but once its start deadlocking, if I stop and then lower the number to a much lower number, it usually works. So my impression is that for some reason, the underlying infrastructure have some sort of issue ingesting large numbers of writes too fast.

Would be interesting to hear if anyone else get the same issue.

rogeralsing avatar Nov 06 '16 10:11 rogeralsing