[ 
https://issues.apache.org/jira/browse/KAFKA-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897080#comment-13897080
 ] 

Jay Kreps commented on KAFKA-1255:
----------------------------------

This is surprising as the offset comes through the same code path on the 
producer irrespective of the acks settings. The place that is set is in 
FutureRecordMetadata:
    private RecordMetadata valueOrError() throws ExecutionException {
        if (this.result.error() != null)
            throw new ExecutionException(this.result.error());
        else
            return new RecordMetadata(result.topicPartition(), 
this.result.baseOffset() + this.relativeOffset);
    }

Perhaps this is being set wrong on the server?

> Offset in RecordMetadata is Incorrect with New Producer Ack = -1
> ----------------------------------------------------------------
>
>                 Key: KAFKA-1255
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1255
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Guozhang Wang
>             Fix For: 0.9.0
>
>         Attachments: sendwithAckMinusOne, sendwithAckOne
>
>
> With the new producer's integration test, one observation is that when 
> producer ack = -1, the returned offset is incorrect.
> Output files with two scenarios (send 100 messages with ack = 1 and -1) 
> attached.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to