-
Notifications
You must be signed in to change notification settings - Fork 73
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
PartitionAvailable always return false, but partition is avail #70
Comments
Probably @edenhill can help you more. I'm not entirely sure what's going on there, could you run this with a bit more debug logging? I wonder if anything happens between True and False that makes librdkafka change it's view on whether there's a leader broker. |
Yeah I'm not really sure either. Try enable |
There's now a 0.9.2 build up. Could you check if you can still reproduce it with that? |
I could reproduce with the same code on 0.9.2 this afternoon (had time to spend on it and wanted to understand s long post which give more questions than answers, sorry) TL;DR; Long part:
Note that I receive true for partition i after receiving TOPBRK kafka:XXXX/X: Topic paidorder [i]: joining broker
Note the timestamp for first topicavailable on P0 (32.252), it occured before P0 joined (32.256), lines have switched 17:29:27.786 rdkafka#producer-1 7 TOPBRK kafka:9193/1: Topic paidorder [1]: joining broker (rktp 0000021EF1543D60)
If i call metadata before, i don't get the :0/internal join, and i no broker join at beginning. Same behaviour whatever bootstrap
So calling metadata after creating topic seems to be a workaround for now. This may depend of network. But whatever, something wrong is happening with partition avaliable Also important
even when i remove the top.PartitionAvailable and the interlocked (so only specify a partition at 0) but only when Console.WriteLine is here @edenhill for info if you think it's something you already saw or if it's related to rdkafka-dotnet |
I got a topic name
paidorder
which has two partitions and I have set up two broker.I try to follow Advance Producer as following. But I found out that
PartitionAvailable
function would return true no matter which partition is in use, then when I try to produce any other message, it would return false. However the message is produced successfully and could be consumed.The text was updated successfully, but these errors were encountered: