You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2014/04/07 20:49:20 UTC
[jira] [Created] (KAFKA-1364) ReplicaManagerTest hard-codes log dir
Jun Rao created KAFKA-1364:
------------------------------
Summary: ReplicaManagerTest hard-codes log dir
Key: KAFKA-1364
URL: https://issues.apache.org/jira/browse/KAFKA-1364
Project: Kafka
Issue Type: Bug
Components: core
Affects Versions: 0.8.2
Reporter: Jun Rao
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)