From dev-return-94832-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Tue Jun 5 12:57:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 88211180625 for ; Tue, 5 Jun 2018 12:57:05 +0200 (CEST) Received: (qmail 75291 invoked by uid 500); 5 Jun 2018 10:57:04 -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 75280 invoked by uid 99); 5 Jun 2018 10:57:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2018 10:57:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C6E871A3F43 for ; Tue, 5 Jun 2018 10:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RezD8fQLPd6g for ; Tue, 5 Jun 2018 10:57:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C11985F582 for ; Tue, 5 Jun 2018 10:57:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B2951E08C7 for ; Tue, 5 Jun 2018 10:57:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 36ABF21098 for ; Tue, 5 Jun 2018 10:57:00 +0000 (UTC) Date: Tue, 5 Jun 2018 10:57:00 +0000 (UTC) From: "Manikumar (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KAFKA-6982) java.lang.ArithmeticException: / by zero MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-6982?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Manikumar resolved KAFKA-6982. ------------------------------ Resolution: Fixed Fix Version/s: 2.0.0 > java.lang.ArithmeticException: / by zero > ---------------------------------------- > > Key: KAFKA-6982 > URL: https://issues.apache.org/jira/browse/KAFKA-6982 > Project: Kafka > Issue Type: Bug > Components: network > Affects Versions: 1.1.0 > Environment: Environment: Windows 10.=C2=A0 > Reporter: wade wu > Priority: Major > Fix For: 2.0.0 > > > Producer keeps sending messages to Kafka, Kafka is down.=C2=A0 > Server.log shows:=C2=A0 > ...... > [2018-06-01 17:01:33,945] WARN [Log partition=3D__consumer_offsets-6, dir= =3DD:\data\Kafka\kafka-logs] Found a corrupted index file corresponding to = log file D:\data\Kafka\kafka-logs__consumer_offsets-6\00000000000000000000.= log due to Corrupt index found, index file (D:\data\Kafka\kafka-logs__consu= mer_offsets-6\00000000000000000000.index) has non-zero size but the last of= fset is 0 which is no greater than the base offset 0.}, recovering segment = and rebuilding index files... (kafka.log.Log) > [2018-06-01 17:01:33,945] WARN [Log partition=3D__consumer_offsets-6, di= r=3DD:\data\Kafka\kafka-logs] Found a corrupted index file corresponding to= log file D:\data\Kafka\kafka-logs__consumer_offsets-6\00000000000000000000= .log due to Corrupt index found, index file (D:\data\Kafka\kafka-logs__cons= umer_offsets-6\00000000000000000000.index) has non-zero size but the last o= ffset is 0 which is no greater than the base offset 0.}, recovering segment= and rebuilding index files... (kafka.log.Log) > [2018-06-01 17:01:34,664] ERROR Error while accepting connection (kafka.= network.Acceptor) > java.lang.ArithmeticException: / by zero > at kafka.network.Acceptor.run(SocketServer.scala:354) > at java.lang.Thread.run(Thread.java:748) > [2018-06-01 17:01:34,664] ERROR Error while accepting connection (kafka.= network.Acceptor) > java.lang.ArithmeticException: / by zero > at kafka.network.Acceptor.run(SocketServer.scala:354) > at java.lang.Thread.run(Thread.java:748) > [2018-06-01 17:01:34,664] ERROR Error while accepting connection (kafka.= network.Acceptor) > java.lang.ArithmeticException: / by zero > at kafka.network.Acceptor.run(SocketServer.scala:354) > at java.lang.Thread.run(Thread.java:748) > ...... > =C2=A0 > This line of code in SocketServer.scala causing the error:=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {color:#33= 3333}=C2=A0currentProcessor =3D currentProcessor{color:#d04437} % processor= s.size{color}{color} > =C2=A0 > =C2=A0 > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)