Return-Path: X-Original-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A71939234 for ; Thu, 5 Jan 2012 17:06:03 +0000 (UTC) Received: (qmail 55229 invoked by uid 500); 5 Jan 2012 17:06:03 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 55154 invoked by uid 500); 5 Jan 2012 17:06:03 -0000 Mailing-List: contact kafka-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kafka-dev@incubator.apache.org Delivered-To: mailing list kafka-dev@incubator.apache.org Received: (qmail 54990 invoked by uid 99); 5 Jan 2012 17:06:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 17:06:02 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 17:06:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BAE7D139A72 for ; Thu, 5 Jan 2012 17:05:39 +0000 (UTC) Date: Thu, 5 Jan 2012 17:05:39 +0000 (UTC) From: "Jun Rao (Commented) (JIRA)" To: kafka-dev@incubator.apache.org Message-ID: <1341506608.9969.1325783139767.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1594676411.9399.1325775099352.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (KAFKA-236) Make 'autooffset.reset' accept a delay in addition to {smallest,largest} MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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