You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by SenthilKumar K <se...@gmail.com> on 2019/07/01 10:45:21 UTC

Kafka Offsets

Hello Experts, We are trying to understand  *"How Kafka Assign Offset value
to a message?"*

Kafka Version : 2.2.0
Kafka Client    : 1.1.0

For a Topic , Using Java Consumer API we consumed data from Partition 0 (
total 48 Partitions ) and below are the offset numbers.

181933
181935
181936
181939
181941
181942
181943
181944
181945


181934,181937,18193 are the missing offset numbers for partition 0. Is this
expected behaviour ?there is no guarantee that offsets are consecutive with
in partition?

Pls advise.

--Senthil

Re: Kafka Offsets

Posted by Srinath C <sr...@gmail.com>.
Hi Senthil,

Yes, I believe the only guarantee is that the offsets will be increasing
but not guaranteed to be consecutive.

Regards,
Srinath.


On Mon, Jul 1, 2019 at 4:15 PM SenthilKumar K <se...@gmail.com>
wrote:

> Hello Experts, We are trying to understand  *"How Kafka Assign Offset value
> to a message?"*
>
> Kafka Version : 2.2.0
> Kafka Client    : 1.1.0
>
> For a Topic , Using Java Consumer API we consumed data from Partition 0 (
> total 48 Partitions ) and below are the offset numbers.
>
> 181933
> 181935
> 181936
> 181939
> 181941
> 181942
> 181943
> 181944
> 181945
>
>
> 181934,181937,18193 are the missing offset numbers for partition 0. Is this
> expected behaviour ?there is no guarantee that offsets are consecutive with
> in partition?
>
> Pls advise.
>
> --Senthil
>