kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joris Van Remoortere (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-1098) Unit test failure in 0.8.1 related to LogCleaner
Date Tue, 22 Oct 2013 18:48:41 GMT

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

Joris Van Remoortere updated KAFKA-1098:
----------------------------------------

    Attachment: kafka_1098-v1.patch

logSegments can currently be called with to = -1. This can trigger submap to be called with
invalid arguments (i.e. from > to). We catch this case and return an empty iterable of
logSegments.

> Unit test failure in 0.8.1 related to LogCleaner
> ------------------------------------------------
>
>                 Key: KAFKA-1098
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1098
>             Project: Kafka
>          Issue Type: Bug
>          Components: log
>    Affects Versions: 0.8.1
>            Reporter: Neha Narkhede
>            Assignee: Jay Kreps
>         Attachments: kafka_1098-v1.patch
>
>
> Floor = 0, To = -1
> [2013-10-22 09:39:25,001] ERROR Error in cleaner thread 0: (kafka.log.LogCleaner:103)
> java.lang.IllegalArgumentException: inconsistent range
> 	at java.util.concurrent.ConcurrentSkipListMap$SubMap.<init>(ConcurrentSkipListMap.java:2506)
> 	at java.util.concurrent.ConcurrentSkipListMap.subMap(ConcurrentSkipListMap.java:1984)
> 	at kafka.log.Log.logSegments(Log.scala:605)
> 	at kafka.log.LogToClean.<init>(LogCleaner.scala:596)
> 	at kafka.log.LogCleaner$$anonfun$5.apply(LogCleaner.scala:137)
> 	at kafka.log.LogCleaner$$anonfun$5.apply(LogCleaner.scala:137)
> 	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
> 	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
> 	at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
> 	at scala.collection.immutable.List.foreach(List.scala:45)
> 	at scala.collection.TraversableLike$class.map(TraversableLike.scala:206)
> 	at scala.collection.immutable.List.map(List.scala:45)
> 	at kafka.log.LogCleaner.kafka$log$LogCleaner$$grabFilthiestLog(LogCleaner.scala:137)
> 	at kafka.log.LogCleaner$CleanerThread.cleanOrSleep(LogCleaner.scala:203)
> 	at kafka.log.LogCleaner$CleanerThread.run(LogCleaner.scala:189)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message