You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "huxi (JIRA)" <ji...@apache.org> on 2017/04/25 01:13:04 UTC

[jira] [Comment Edited] (KAFKA-5118) Improve message for Kafka failed startup with non-Kafka data in data.dirs

    [ https://issues.apache.org/jira/browse/KAFKA-5118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982092#comment-15982092 ] 

huxi edited comment on KAFKA-5118 at 4/25/17 1:12 AM:
------------------------------------------------------

I remember 0.10.2.0 checks whether the directory name contains the dash before substring-ing it. There is another possibility that your non-Kafka directory ends with `-delete`. Right?


was (Author: huxi_2b):
I remember 0.10.2.0 checks whether the directory name contains the dash before substring-ing it. This is another possibility that your non-Kafka directory ends with `-delete`. Right?

> Improve message for Kafka failed startup with non-Kafka data in data.dirs
> -------------------------------------------------------------------------
>
>                 Key: KAFKA-5118
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5118
>             Project: Kafka
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.10.2.0
>            Reporter: Dustin Cote
>            Priority: Minor
>
> Today, if you try to startup a broker with some non-Kafka data in the data.dirs you end up with a cryptic message:
> {code}
> [2017-04-21 13:35:08,122] ERROR There was an error in one of the threads during logs loading: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (kafka.log.LogManager) 
> [2017-04-21 13:35:08,124] FATAL [Kafka Server 3], Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) 
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1 
> {code}
> It'd be better if we could tell the user to look for non-Kafka data in the data.dirs and print out the offending directory that caused the problem in the first place.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)