-
Notifications
You must be signed in to change notification settings - Fork 628
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
for topic of multiple partitions, sometimes not all partitions are consumed by highlevelconsumer #339
Comments
Does this issue happen in version 0.2.30 ? |
@hyperlink: yes |
I also encountered this situation。but in version 0.2.29 no this problem |
@tomwang1013 and what tools do you use to see the partitions? thank you |
@sensoroDj are you sure that 0.2.29 not has this problem? i will revert to 0.2.29 |
Sorry . I use the 0.2.29 version! my partitions and consumers are one-for-one ! I will let one consumer consume one partitions eg: 3 patitions to 3 consumers ! but when i use 0.3.x highlevel api will not work i want to be. I recommand you to use low version when you use highleve api. I found it cant work well in 0.3.x |
@tomwang1013 can you give the output using kafka tools ? Something like The only scenario I have been able to reproduce your issue is when you are only sending messages to a few partitions and you don'f have one consumer per partition, for example
You will get something like:
The distribution is basically (partitions / consumers) + one consumer gets an additional for the fraction part So you get:
So ONLY one consumer is getting messages since there are only messages on the first 5 partitions |
@jbarreto in my case, there was only one consumer in this group, so it should consume all the partitions. But *_sometimes *_it did not as i show above. The correct scenario is: |
@sensoroDj sorry, i was a little confused, you said: "but when i use 0.3.x highlevel api will not work i want to be" and "I found it cant work well in 0.3.x". Should we use 0.3.x or 0.2.29 when using highlevel api? |
I am seeing this same issue and am using 0.2.27
I have 3 consumers which should all be taking an equal share of the messages, but partition 14 is stuck. This was happening before and when a rebalance would occur (like when adding or removing a consumer to the group) the stuck partition would suddenly get drained and all the stuck messages would be processed several days late. Can someone suggest which version, if any, this issue has been resolved in or how this can be remedied? |
@tomwang1013 sorry ! my English is not well ! I mean sometimes it works well in 0.2.x ! I all met your problem ! one consumer for all paritions ! but it is not all partitions to be consumered! I fount it may caused by zookeeper ! kafka consumer not balanced ok! |
This is a non-obvious part of Kafka node if you ask me. Consumer starvation versus partition "warmup" with default partitioners can be confusing. It can take several minutes for each partition to get messages (or longer) === you should always produce with a partition # or a keyed message IMO. Also after consumer count > partition count, any new consumers ALWAYS starve all the time...... This is proper operation by design.... but yet again confusing if you don't know the technical details around a rebalance operation. |
0.2.29 also has this problem. i have given it up and use a client of another language. |
I solved this issue! Maybe it isn't the same reason for others, but here is what it was... I copied the So, what happened was a message was produced which was too big for my Once I removed my config and let the default do its thing, my stuck partitions all got consumed and everything is working perfectly. Note: I am currently using version 0.2.27. Just before writing this I had 11 out of 15 partitions stuck. Now all are perfectly fine. |
@ericdolson looks like a bug in the documentation. All the options mirror the defaults except for |
Noticed kafka console consumer will throw an error if the message being fetched exceeds maxBytes. It would be nice if
|
Facing the same issue with Kafka-node 1.6.2 kafka-node-group nc_delta 0 34620 34620 0 none |
it happened quite a few times: i use highlevelconsumer to consume a topic of 4 partitions, but only 2 partitions were consumed, like:
Sometime reboot the consumer fixed it, sometimes not. why?
The text was updated successfully, but these errors were encountered: