You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by 飘落 <sk...@qq.com> on 2017/02/10 09:50:37 UTC

Messages not received (C/C++ client)

hi,
   Messages are not received when the partition is not consumed for the first time. The auto.offset.reset is set to be largest. Repetition of steps are as follows: 
1.create a group; 
2.start a producer, and send messages to a fixed partition, such as partition 0; 
3.start a consumer 
4.close consumer 
5.start another producer, and send 10 messages to another partition, such as partition 1; 
6.close the second producer and restart the consumer 
7.the 10 messages the second producer sent are not received 


   My understanding is that the 10 messages can be received when the consumer start for the second times. And java client can receive the 10 message, when the auto.offset.reset is set to be largest. 
  In the function rd_kafka_commit_message, the offset is not committed when the err is not 0. Offset will not be committed, when the err is RD_KAFKA_RESP_ERR__PARTITION_EOF. If the offset should be committed when the err is RD_KAFKA_RESP_ERR__PARTITION_EOF? 


Thanks,
suiyuzeng