kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manikumar (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-6982) java.lang.ArithmeticException: / by zero
Date Tue, 05 Jun 2018 10:57:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-6982?page=com.atlassian.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. 
>            Reporter: wade wu
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Producer keeps sending messages to Kafka, Kafka is down. 
> Server.log shows: 
> ......
> [2018-06-01 17:01:33,945] WARN [Log partition=__consumer_offsets-6, dir=D:\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__consumer_offsets-6\00000000000000000000.index)
has non-zero size but the last offset 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=__consumer_offsets-6, dir=D:\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__consumer_offsets-6\00000000000000000000.index)
has non-zero size but the last offset 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)
> ......
>  
> This line of code in SocketServer.scala causing the error: 
>                   {color:#333333} currentProcessor = currentProcessor{color:#d04437}
% processors.size{color}{color}
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message