-Re: Offset question
Jay Kreps 2013-10-07, 21:55
Offsets always begin at 0 for each partition and increase sequentially from
there. Offsets aren't unique within a topic. As old data is discarded the
first retained offset will not remain 0. The behavior of what is retained
is controlled by your retention settings.
In trunk there is a feature that allows removing messages from the log (
would leave holes between offsets for topics where you enabled compaction.
On Mon, Oct 7, 2013 at 12:45 PM, Francis Dallaire <
[EMAIL PROTECTED]> wrote:
> I have question regarding the offset in kafka (0.8). I've gone through the
> documentation and did some tests, but I want to make sure I'm on the right
> * Are the offsets guaranteed to be sequential in a partition ?
> o Can it contain holes ?
> * How offsets are distributed amongst partitions ?
> o Unique inside a partition, not inside a topic ?
> o What determines where it starts for each partition ?
> If you have a link to some documentation, that could be useful.