Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9EF16182DA for ; Fri, 15 Jan 2016 23:39:40 +0000 (UTC) Received: (qmail 51375 invoked by uid 500); 15 Jan 2016 23:39:40 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 51279 invoked by uid 500); 15 Jan 2016 23:39:40 -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 51255 invoked by uid 99); 15 Jan 2016 23:39:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 23:39:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D24CA2C1F57 for ; Fri, 15 Jan 2016 23:39:39 +0000 (UTC) Date: Fri, 15 Jan 2016 23:39:39 +0000 (UTC) From: "Vahid Hashemian (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-3111) java.lang.ArithmeticException: / by zero in ConsumerPerformance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-3111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15102699#comment-15102699 ] Vahid Hashemian commented on KAFKA-3111: ---------------------------------------- I see, thanks. I'm trying to reproduce the issue but have not had any luck yet. I've even had log lines with the same timestamp and no exception was raised. Example: bin/kafka-consumer-perf-test.sh --zookeeper localhost:2181 --topic topic1 --threads 1 --show-detailed-stats --reporting-interval 5000 --messages 10001 time, data.consumed.in.MB, MB.sec, data.consumed.in.nMsg, nMsg.sec 2016-01-15 15:06:04:909, 0, 0.0143, 0.2744, 5000, 96153.8462 2016-01-15 15:06:04:914, 0, 0.0286, 3.5763, 10000, 1250000.0000 2016-01-15 15:06:04:914, 0, 0.0286, 0.0001, 10001, 17.5439 Also, this one with smaller number of messages to process: bin/kafka-consumer-perf-test.sh --zookeeper localhost:2181 --topic topic1 --threads 1 --show-detailed-stats --reporting-interval 1 --messages 10 time, data.consumed.in.MB, MB.sec, data.consumed.in.nMsg, nMsg.sec 2016-01-15 15:36:48:262, 0, 0.0000, 0.0003, 1, 333.3333 2016-01-15 15:36:48:264, 0, 0.0000, Infinity, 2, Infinity 2016-01-15 15:36:48:264, 0, 0.0000, NaN, 3, Infinity 2016-01-15 15:36:48:265, 0, 0.0000, Infinity, 4, Infinity 2016-01-15 15:36:48:265, 0, 0.0000, Infinity, 5, Infinity 2016-01-15 15:36:48:265, 0, 0.0000, Infinity, 6, Infinity 2016-01-15 15:36:48:271, 0, 0.0000, Infinity, 7, Infinity 2016-01-15 15:36:48:271, 0, 0.0000, Infinity, 8, Infinity 2016-01-15 15:36:48:271, 0, 0.0000, Infinity, 9, Infinity 2016-01-15 15:36:48:271, 0, 0.0000, Infinity, 10, Infinity 2016-01-15 15:36:48:272, 0, 0.0000, 0.0000, 10, 0.0000 > java.lang.ArithmeticException: / by zero in ConsumerPerformance > --------------------------------------------------------------- > > Key: KAFKA-3111 > URL: https://issues.apache.org/jira/browse/KAFKA-3111 > Project: Kafka > Issue Type: Bug > Components: core > Affects Versions: 0.9.0.0 > Reporter: Jun Rao > Labels: newbie > > Saw the following error. If there are lots of unconsumed messages, between two iterations of the consumption, the timestamp may not have changed. > kafka-consumer-perf-test --zookeeper localhost:2181 --topic test --group test-group --threads 1 --show-detailed-stats --reporting-interval 5000 > 2016-01-13 09:12:43:905, 0, 1048576, 35.2856, 238.4186, 370000, 2500000.0000 > 2016-01-13 09:12:43:916, 0, 1048576, 35.7624, 47.6837, 375000, 500000.0000 > java.lang.ArithmeticException: / by zero > at kafka.tools.ConsumerPerformance$ConsumerPerfThread.printMessage(ConsumerPerformance.scala:189) > at kafka.tools.ConsumerPerformance$ConsumerPerfThread.run(ConsumerPerformance.scala:164) > 2016-01-13 09:12:43:918, 0, 1048576, 36.2393, 0.7117, 380000, 7000.0000 -- This message was sent by Atlassian JIRA (v6.3.4#6332)