kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manikumar Reddy <ku...@nmsworks.co.in>
Subject Re: Producer RecordMetaData with Offset -1
Date Fri, 12 Jun 2015 16:25:00 GMT
Hi,

What is the value set for acks config property?
If acks=0 then the producer will not wait for any  acknowledgment from the
server and
offset given back for each record will always be set to -1.

Manikumar

On Fri, Jun 12, 2015 at 7:17 PM, Gokulakannan M (Engineering - Data
Platform) <gokulakannan.m@flipkart.com> wrote:

> Hi,
>
> I am running a standalone kafka cluster and writing some sample messages
> using the java client API KafkaProducer. The RecordMetaData I am receiving
> from server(KafkaProducer send method return value) contains offset -1. Is
> offset information available only at consumer end and not in producer side
> yet? Or am I missing something?
>
> I am using kafka version 0.8.2.0
>
>
> --
>
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
> This message contains confidential information and is intended only for the
> individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and
> delete this e-mail from your system. If you are not the intended recipient
> you are notified that disclosing, copying, distributing or taking any
> action in reliance on the contents of this information is strictly
> prohibited. Although Flipkart has taken reasonable precautions to ensure no
> viruses are present in this email, the company cannot accept responsibility
> for any loss or damage arising from the use of this email or attachments
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message