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

Jun Rao updated KAFKA-511:
--------------------------

    Attachment: kafka-511_v1.patch

Attach patch v1. Fixed it by returning the offset in log.append, which is 
synchronized. Also, currently, we return the offset of the next message. 
Changed it to return the offset of the message being added.
                
> offset returned in Producer response may not be correct
> -------------------------------------------------------
>
>                 Key: KAFKA-511
>                 URL: https://issues.apache.org/jira/browse/KAFKA-511
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.8
>            Reporter: Jun Rao
>            Priority: Blocker
>              Labels: bugs
>             Fix For: 0.8
>
>         Attachments: kafka-511_v1.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The problems is that we append messages to the log and then get the offset. 
> Another produce request could have sneaked in between the 2 steps.

--
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

Reply via email to