Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9B4872009E2 for ; Wed, 1 Jun 2016 22:29:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 99E88160A4C; Wed, 1 Jun 2016 20:29:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DEBA2160A45 for ; Wed, 1 Jun 2016 22:29:01 +0200 (CEST) Received: (qmail 66422 invoked by uid 500); 1 Jun 2016 20:28:59 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 66011 invoked by uid 99); 1 Jun 2016 20:28:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2016 20:28:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 73FE82C1F6E for ; Wed, 1 Jun 2016 20:28:59 +0000 (UTC) Date: Wed, 1 Jun 2016 20:28:59 +0000 (UTC) From: "Vahid Hashemian (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KAFKA-3129) Console producer issue when request-required-acks=0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Jun 2016 20:29:02 -0000 [ https://issues.apache.org/jira/browse/KAFKA-3129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vahid Hashemian updated KAFKA-3129: ----------------------------------- Summary: Console producer issue when request-required-acks=0 (was: Console Producer/Consumer Issue) > Console producer issue when request-required-acks=0 > --------------------------------------------------- > > Key: KAFKA-3129 > URL: https://issues.apache.org/jira/browse/KAFKA-3129 > Project: Kafka > Issue Type: Bug > Components: consumer, producer > Affects Versions: 0.9.0.0 > Reporter: Vahid Hashemian > Assignee: Neha Narkhede > Attachments: kafka-3129.mov, server.log.abnormal.txt, server.log.normal.txt > > > I have been running a simple test case in which I have a text file {{messages.txt}} with 1,000,000 lines (lines contain numbers from 1 to 1,000,000 in ascending order). I run the console consumer like this: > {{$ bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test}} > Topic {{test}} is on 1 partition with a replication factor of 1. > Then I run the console producer like this: > {{$ bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test < messages.txt}} > Then the console starts receiving the messages. And about half the times it goes all the way to 1,000,000. But, in other cases, it stops short, usually at 999,735. > I tried running another console consumer on another machine and both consumers behave the same way. I can't see anything related to this in the logs. > I also ran the same experiment with a similar file of 10,000 lines, and am getting a similar behavior. When the consumer does not receive all the 10,000 messages it usually stops at 9,864. -- This message was sent by Atlassian JIRA (v6.3.4#6332)