You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Joel Koshy (JIRA)" <ji...@apache.org> on 2014/04/08 22:20:15 UTC

[jira] [Assigned] (KAFKA-1364) ReplicaManagerTest hard-codes log dir

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

Joel Koshy reassigned KAFKA-1364:
---------------------------------

    Assignee: Guozhang Wang

> ReplicaManagerTest hard-codes log dir
> -------------------------------------
>
>                 Key: KAFKA-1364
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1364
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>            Reporter: Jun Rao
>            Assignee: Guozhang Wang
>             Fix For: 0.8.2, 0.8.1.1
>
>
> Saw the following unit test failure. This is probably due to that the hard-coded log.dir conflicts with the default config when running a standalone sack.
> kafka.server.ReplicaManagerTest > testHighwaterMarkDirectoryMapping FAILED
>     java.lang.IllegalArgumentException: requirement failed: Corrupt index found, index file (/tmp/kafka-logs/test-topic-1/00000000000000000000.index) has non-zero size but the last offset is 0 and the base offset is 0
>         at scala.Predef$.require(Predef.scala:145)
>         at kafka.log.OffsetIndex.sanityCheck(OffsetIndex.scala:352)
>         at kafka.log.Log$$anonfun$loadSegments$5.apply(Log.scala:159)
>         at kafka.log.Log$$anonfun$loadSegments$5.apply(Log.scala:158)
>         at scala.collection.Iterator$class.foreach(Iterator.scala:631)
>         at scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:474)
>         at scala.collection.IterableLike$class.foreach(IterableLike.scala:79)
>         at scala.collection.JavaConversions$JCollectionWrapper.foreach(JavaConversions.scala:495)
>         at kafka.log.Log.loadSegments(Log.scala:158)
>         at kafka.log.Log.<init>(Log.scala:64)
>         at kafka.server.ReplicaManagerTest.testHighwaterMarkDirectoryMapping(ReplicaManagerTest.scala:43)



--
This message was sent by Atlassian JIRA
(v6.2#6252)