You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ewen Cheslack-Postava (JIRA)" <ji...@apache.org> on 2016/06/14 18:55:27 UTC

[jira] [Resolved] (KAFKA-3762) Log.loadSegments() should log the message in exception

     [ https://issues.apache.org/jira/browse/KAFKA-3762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ewen Cheslack-Postava resolved KAFKA-3762.
------------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10.1.0

Issue resolved by pull request 1480
[https://github.com/apache/kafka/pull/1480]

> Log.loadSegments() should log the message in exception
> ------------------------------------------------------
>
>                 Key: KAFKA-3762
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3762
>             Project: Kafka
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.10.0.0
>            Reporter: Jun Rao
>            Assignee: Ishita Mandhan
>              Labels: newbie
>             Fix For: 0.10.1.0
>
>
> In Log.loadSegments(), we have the following code. It would be useful to log the error message in IllegalArgumentException.
>         if(indexFile.exists()) {
>           try {
>               segment.index.sanityCheck()
>           } catch {
>             case e: java.lang.IllegalArgumentException =>
>               warn("Found a corrupted index file, %s, deleting and rebuilding index...".format(indexFile.getAbsolutePath))
>               indexFile.delete()
>               segment.recover(config.maxMessageSize)
>           }
>         }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)