Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka, mail # user - [0.8 + scala 2.10 patches] [error] Failed tests: kafka.log.LogTest


Copy link to this message
-
Re: [0.8 + scala 2.10 patches] [error] Failed tests: kafka.log.LogTest
Jun Rao 2013-08-05, 15:28
Is this transient? The testTimeBasedLogRoll has timing dependency. I have
seen it fail occasionally.

Thanks,

Jun
On Fri, Aug 2, 2013 at 8:51 PM, Rob Withers <[EMAIL PROTECTED]> wrote:

> I built 0.8, fresh, with the scala 2.10 patches from KAFKA-717's tgz, on
> my Macbook.  I ran sbt tests (after running sbt eclipse) and got the
> following error:
>
> [error] Failed: : Total 180, Failed 1, Errors 0, Passed 179, Skipped 0
> [error] Failed tests:
> [error]         kafka.log.LogTest
> [error] (core/test:test) sbt.TestsFailedException: Tests unsuccessful
> [error] Total time: 284 s, completed Aug 2, 2013 9:42:45 PM
>
>
> 2013-08-02 21:41:46,036] ERROR [Kafka Log on Broker 0], Target offset 11
> cannot be greater than the last message offset 10 in the log
> /var/folders/pw/ybk0ckhd6nv45slbbk2rdnq40000gn/T/kafka-341270/00000000000000000000.log
> (kafka.log.Log:?)
> [info] LogTest:
> [info] - testTimeBasedLogRoll *** FAILED ***
> [info]   junit.framework.AssertionFailedError: There should be exactly one
> segment. expected:<1> but was:<2>
> [info]   at junit.framework.Assert.fail(Assert.java:47)
> [info]   at junit.framework.Assert.failNotEquals(Assert.java:277)
> [info]   at junit.framework.Assert.assertEquals(Assert.java:64)
> [info]   at junit.framework.Assert.assertEquals(Assert.java:195)
> [info]   at kafka.log.LogTest.testTimeBasedLogRoll(Unknown Source)
> [info]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [info]   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [info]   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [info]   at java.lang.reflect.Method.invoke(Method.java:597)
> [info]   at
> org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
> [info]   ...
>
>
>
> thanks,
> rob