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 EB81F9456 for ; Thu, 5 Jan 2012 21:29:02 +0000 (UTC) Received: (qmail 14022 invoked by uid 500); 5 Jan 2012 21:29:01 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 13934 invoked by uid 500); 5 Jan 2012 21:29:01 -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 13925 invoked by uid 99); 5 Jan 2012 21:29:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 21:29:00 +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 21:28:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DD6E313A1AD for ; Thu, 5 Jan 2012 21:28:39 +0000 (UTC) Date: Thu, 5 Jan 2012 21:28:39 +0000 (UTC) From: "Edward Capriolo (Commented) (JIRA)" To: kafka-dev@incubator.apache.org Message-ID: <1039282863.11650.1325798919908.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <221361229.1204.1325614239563.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (KAFKA-232) ConsumerConnector has no access to "getOffsetsBefore" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180851#comment-13180851 ] Edward Capriolo commented on KAFKA-232: --------------------------------------- Interesting idea. I am not sure that will work well, many producers will be logging and I would expect that some messages will arrive out of order. Especially as the minute turns over. In the worst case scenario a producer might have an unexpected shutdown and wake up at some time later. Ideally I would like the producers to not have to write special headers etc. I thought of recording the last message seen assuming that each record is more or less unique but there are edge cases here as well. I opened this issue up because I am wondering why the two consumers have different functionality. Which one should be used for which cases? It is not entirely clear to a new user like myself. >From a mile-high view it seems like if the ConsumerConnection has access to commitOffset() it should be able to call getOffset(). Is there some technical complexity in implementing this? > ConsumerConnector has no access to "getOffsetsBefore" > ------------------------------------------------------ > > Key: KAFKA-232 > URL: https://issues.apache.org/jira/browse/KAFKA-232 > Project: Kafka > Issue Type: New Feature > Reporter: Edward Capriolo > Priority: Minor > > kafka.javaapi.SimpleConsumer has "getOffsetsBefore". I would like this ability in KafkaMessageStream or in ConsumerConnector. In this way clients can access their current position. -- 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