kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jun Rao (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-236) Make 'autooffset.reset' accept a delay in addition to {smallest,largest}
Date Thu, 05 Jan 2012 17:05:39 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180528#comment-13180528
] 

Jun Rao commented on KAFKA-236:
-------------------------------

 To reset the offset, under the cover, we use getLastestOffsetBefore(), which supports an
arbitrary starting timestamp, in addition to smallest and largest. However, getLastestOffsetBefore
has a very coarse granularity at this moment. It only returns the offset of the first message
in a log segment file based on its last modified time. So, depending on the log segment size,
this may or may not be good enough for some applications.
                
> Make 'autooffset.reset' accept a delay in addition to {smallest,largest}
> ------------------------------------------------------------------------
>
>                 Key: KAFKA-236
>                 URL: https://issues.apache.org/jira/browse/KAFKA-236
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Mathias Herberts
>
> Add the possibilty to specify a delay in ms which would be used when resetting offset.
> This would allow for example a client to specify it would like its offset to be reset
to the first offset before/after the current time - the given offset.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message