[
https://issues.apache.org/jira/browse/KAFKA-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14256154#comment-14256154
]
lokesh Birla edited comment on KAFKA-727 at 12/22/14 8:29 PM:
--------------------------------------------------------------
Hi Jun and Jay,
Also, I can see this issue with producer itself without running any consumer.
I filed https://issues.apache.org/jira/browse/KAFKA-1806 for this issue. Could
you please have a look?
https://issues.apache.org/jira/browse/KAFKA-1806?focusedCommentId=14254551&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14254551
Please check my latest comment.
Lokesh
was (Author: lokeshbirla):
Hi Jun and Jay,
I filed https://issues.apache.org/jira/browse/KAFKA-1806 for this issue. Could
you please have a look?
https://issues.apache.org/jira/browse/KAFKA-1806?focusedCommentId=14254551&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14254551
Please check my latest comment.
Lokesh
> broker can still expose uncommitted data to a consumer
> ------------------------------------------------------
>
> Key: KAFKA-727
> URL: https://issues.apache.org/jira/browse/KAFKA-727
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8.0
> Reporter: Jun Rao
> Assignee: Jay Kreps
> Priority: Blocker
> Labels: p1
> Attachments: KAFKA-727-v1.patch
>
>
> Even after kafka-698 is fixed, we still see consumer clients occasionally see
> uncommitted data. The following is how this can happen.
> 1. In Log.read(), we pass in startOffset < HW and maxOffset = HW.
> 2. Then we call LogSegment.read(), in which we call translateOffset on the
> maxOffset. The offset doesn't exist and translateOffset returns null.
> 3. Continue in LogSegment.read(), we then call messageSet.sizeInBytes() to
> fetch and return the data.
> What can happen is that between step 2 and step 3, a new message is appended
> to the log and is not committed yet. Now, we have exposed uncommitted data to
> the client.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)