You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Nalin DeZoysa <nd...@tagged.com> on 2011/10/17 02:05:26 UTC
Fetch request for specific Offset
Hi,
I'm having the problem where if I try and fetch a topic from the most recent
offset, it doesn't work. I have to put the second most recent offset to
receive (only) the most recent offset. If this is the expected behavior,
whats the best way to fetch the most recent offset?
Thanks,
Nalin
Re: Fetch request for specific Offset
Posted by Jun Rao <ju...@gmail.com>.
Nalin,
The most recent offset points to the tail of the log and is the offset for
the next message coming into Kafka. Currently, there is no easy way to get
the offset of the last message. Could you explain your use case a bit?
Thanks,
Jun
On Sun, Oct 16, 2011 at 5:05 PM, Nalin DeZoysa <nd...@tagged.com> wrote:
> Hi,
>
> I'm having the problem where if I try and fetch a topic from the most
> recent
> offset, it doesn't work. I have to put the second most recent offset to
> receive (only) the most recent offset. If this is the expected behavior,
> whats the best way to fetch the most recent offset?
>
> Thanks,
> Nalin
>