kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guozhang Wang <wangg...@gmail.com>
Subject Re: Create topic, then fetch offset
Date Tue, 13 Jan 2015 17:34:05 GMT
Henri,

FetchOffsetRequest is used for retrieving the last committed offset of a
certain consumer group; for your use case you would send OffsetRequest.

That said the error code is misleading, it may be a bug in not indicating
the right error code.

Guozhang


On Fri, Jan 9, 2015 at 4:10 AM, Henri Pihkala <henri.pihkala@streamr.com>
wrote:

> (1) Create topic
> (2) Send a FetchOffsetRequest for a partition in the new topic
>
> Results in error code 3, or UnknownTopicOrPartition.
>
> How can it be unknown, since I just created it? Shouldn’t it return 0, as
> that’s the offset of the next (first) message?
>
> Is this a bug or a feature? Tried with both 0.8.1.1 and 0.8.2-beta
> (single-node cluster).
>
> Best regards
> Henri
>
>


-- 
-- Guozhang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message