You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Imre Nagi <im...@gmail.com> on 2016/03/28 05:41:48 UTC

Offset after message deletion

Hi All,

I'm new in kafka. So, I have a question related to kafka offset.

>From the kafka documentation in here
<http://kafka.apache.org/documentation.html>, it said :

> The Kafka cluster retains all published messages—whether or not they have
> been consumed—for a configurable period of time. For example if the log
> retention is set to two days, then for the two days after a message is
> published it is available for consumption, after which it will be discarded
> to free up space.
>
After the message has been discarded, let say that we receive some new
message. What is the offset of the new message? Will it restart from 0 or
continue the latest offset?

Thanks,
Imre

Re: Offset after message deletion

Posted by Manikumar Reddy <ku...@nmsworks.co.in>.
It will continue from the latest offset. offset is a increasing, contiguous
sequence number per partition.

On Mon, Mar 28, 2016 at 9:11 AM, Imre Nagi <im...@gmail.com> wrote:

> Hi All,
>
> I'm new in kafka. So, I have a question related to kafka offset.
>
> From the kafka documentation in here
> <http://kafka.apache.org/documentation.html>, it said :
>
> > The Kafka cluster retains all published messages—whether or not they have
> > been consumed—for a configurable period of time. For example if the log
> > retention is set to two days, then for the two days after a message is
> > published it is available for consumption, after which it will be
> discarded
> > to free up space.
> >
> After the message has been discarded, let say that we receive some new
> message. What is the offset of the new message? Will it restart from 0 or
> continue the latest offset?
>
> Thanks,
> Imre
>