You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jay Kreps (JIRA)" <ji...@apache.org> on 2012/11/15 05:00:13 UTC

[jira] [Resolved] (KAFKA-71) embed offset inside Message class

     [ https://issues.apache.org/jira/browse/KAFKA-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jay Kreps resolved KAFKA-71.
----------------------------

    Resolution: Invalid  (was: Unresolved)

In 0.8 the iterator returns the offset.
                
> embed offset inside Message class
> ---------------------------------
>
>                 Key: KAFKA-71
>                 URL: https://issues.apache.org/jira/browse/KAFKA-71
>             Project: Kafka
>          Issue Type: New Feature
>
> introduce Message.getOffst() that returns the offset this message is read from. 
> I am using SimpleConsumer to manage offset myself, I would need to do: 
> offset+=MessageSet.entrySize(msg); 
> and keep track of the offset myself. 
> This would my life easier if Message contains offset information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira