[
https://issues.apache.org/jira/browse/KAFKA-1364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jun Rao resolved KAFKA-1364.
----------------------------
Resolution: Fixed
Fix Version/s: (was: 0.8.1.1)
Thanks for the patch. +1 Committed to trunk. I don't think this needs to be in
0.8.1.1 since it's not a blocker.
> 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
>
> Attachments: KAFKA-1364.patch, KAFKA-1364_2014-04-09_10:24:24.patch
>
>
> 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)