[ 
https://issues.apache.org/jira/browse/KAFKA-7095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524432#comment-16524432
 ] 

Jason Gustafson commented on KAFKA-7095:
----------------------------------------

The easy thing to do is increase the offsets.retention.minutes to something 
larger to ensure that the committed offset is not lost. However, there 
shouldn't be any need to restart the application. The consumer should just 
reset the offset if it can't find a committed offset to use. I tried this out 
on 0.10.1 using a very low offsets.retention.minutes and it works as expected. 
I would suggest using a more recent client version, and if that doesn't work, 
collect and post DEBUG logging from the consumer.

> Low traffic consumer is not consuming messages after the offsets is deleted 
> by Kafka
> ------------------------------------------------------------------------------------
>
>                 Key: KAFKA-7095
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7095
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 0.10.1.1
>            Reporter: Aldo Sinanaj
>            Priority: Minor
>
> Hello guys.
> I have a low traffic consumers for a given consumer group and I have the 
> default broker setting for this property *offsets.retention.minutes*. So if a 
> messages is coming after 2 days and Kafka has deleted the offset for that 
> given consumer, then the consumer will not consume the new incoming messages. 
> If I restart the application it will consume from the earliest which is 
> obvious since the offset is deleted.
> My question is why it doesn't consume the new messages if I don't restart the 
> application? And how does this version of Kafka understands if a consumer is 
> active or inactive? Is my consumer considered inactive in this case?
> Thanks,
> Aldo



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to