Why do we need to create that gradle file? Can't we ship a default for that?
Also we should really comment out the @Test annotation on the failing test. I think we checked that in so I had a case to fix against but I think it is a bit disruptive. -Jay On Mon, Feb 17, 2014 at 7:41 PM, Guozhang Wang <wangg...@gmail.com> wrote: > testSendToPartition is suppose to fail now since it detects some bugs in > the new producer code. We are working on it. > > For other test failures, I just redid the unit tests from trunk but does > not see the failures. My test process: > > 1. Check out a new repository of trunk. > 2. Create ~/.gradle/gradle.properties file according to README.md > 3. ./gradlew test > > Only testSendToPartition failed. > > Guozhang > > > On Sun, Feb 16, 2014 at 8:42 PM, Bae, Jae Hyeon <metac...@gmail.com> > wrote: > > > Test failures are stable with the latest trunk, I am building Mac OSX > with > > > > Java version "1.7.0_45" > > Java(TM) SE Runtime Environment (build 1.7.0_45-b18) > > Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) > > > > The followings are log snippet from gradle build: > > > > kafka.server.LogOffsetTest > testGetOffsetsBeforeLatestTime FAILED > > junit.framework.AssertionFailedError: Log for partition [topic,0] > > should be created > > at junit.framework.Assert.fail(Assert.java:47) > > at junit.framework.Assert.assertTrue(Assert.java:20) > > at > > > > > kafka.server.LogOffsetTest.testGetOffsetsBeforeLatestTime(LogOffsetTest.scala:88) > > > > kafka.server.LogOffsetTest > testGetOffsetsBeforeNow FAILED > > junit.framework.AssertionFailedError: expected:<List(20, 16, 12, 8, > 4, > > 0)> but was:<Vector()> > > at junit.framework.Assert.fail(Assert.java:47) > > at junit.framework.Assert.failNotEquals(Assert.java:277) > > at junit.framework.Assert.assertEquals(Assert.java:64) > > at junit.framework.Assert.assertEquals(Assert.java:71) > > at > > > kafka.server.LogOffsetTest.testGetOffsetsBeforeNow(LogOffsetTest.scala:169) > > > > kafka.server.LogOffsetTest > testEmptyLogsGetOffsets FAILED > > java.lang.IndexOutOfBoundsException: 0 > > at > > scala.collection.immutable.Vector.checkRangeConvert(Vector.scala:104) > > at scala.collection.immutable.Vector.apply(Vector.scala:94) > > at > > > > > kafka.server.LogOffsetTest$$anonfun$testEmptyLogsGetOffsets$1.apply$mcVI$sp(LogOffsetTest.scala:136) > > at > > > > > scala.collection.immutable.Range$ByOne$class.foreach$mVc$sp(Range.scala:282) > > at > > scala.collection.immutable.Range$$anon$1.foreach$mVc$sp(Range.scala:274) > > at > > > kafka.server.LogOffsetTest.testEmptyLogsGetOffsets(LogOffsetTest.scala:129) > > > > kafka.server.LogOffsetTest > testGetOffsetsBeforeEarliestTime FAILED > > junit.framework.AssertionFailedError: expected:<List(0)> but > > was:<Vector()> > > at junit.framework.Assert.fail(Assert.java:47) > > at junit.framework.Assert.failNotEquals(Assert.java:277) > > at junit.framework.Assert.assertEquals(Assert.java:64) > > at junit.framework.Assert.assertEquals(Assert.java:71) > > at > > > > > kafka.server.LogOffsetTest.testGetOffsetsBeforeEarliestTime(LogOffsetTest.scala:198) > > > > kafka.test.ProducerSendTest > testSendToPartition FAILED > > java.lang.IllegalMonitorStateException > > at java.lang.Object.wait(Native Method) > > at java.lang.Object.wait(Object.java:503) > > at > > > > > kafka.test.ProducerSendTest$$anonfun$testSendToPartition$2.apply(ProducerSendTest.scala:220) > > at > > > > > kafka.test.ProducerSendTest$$anonfun$testSendToPartition$2.apply(ProducerSendTest.scala:220) > > 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.test.ProducerSendTest.testSendToPartition(ProducerSendTest.scala:220) > > > > > > On Sun, Feb 16, 2014 at 10:48 AM, Guozhang Wang <wangg...@gmail.com> > > wrote: > > > > > Is this error stable? could you check out a clean trunk and retry unit > > > tests? > > > > > > Guozhang > > > > > > > > > 2014-02-14 22:56 GMT-08:00 Bae, Jae Hyeon <metac...@gmail.com>: > > > > > > > - LogOffsetTest <kafka.server.LogOffsetTest.html>. > > > > > > > > > > > > > > > testEmptyLogsGetOffsets<kafka.server.LogOffsetTest.html#testEmptyLogsGetOffsets> > > > > - LogOffsetTest <kafka.server.LogOffsetTest.html>. > > > > > > > > > > > > > > > testGetOffsetsBeforeEarliestTime<kafka.server.LogOffsetTest.html#testGetOffsetsBeforeEarliestTime> > > > > - LogOffsetTest <kafka.server.LogOffsetTest.html>. > > > > > > > > > > > > > > > testGetOffsetsBeforeLatestTime<kafka.server.LogOffsetTest.html#testGetOffsetsBeforeLatestTime> > > > > - LogOffsetTest <kafka.server.LogOffsetTest.html>. > > > > > > > > > > > > > > > testGetOffsetsBeforeNow<kafka.server.LogOffsetTest.html#testGetOffsetsBeforeNow> > > > > - ProducerSendTest <kafka.test.ProducerSendTest.html>. > > > > > > > > > > > > > > testSendToPartition<kafka.test.ProducerSendTest.html#testSendToPartition> > > > > > > > > failed. > > > > > > > > Can I trust trunk? :) > > > > > > > > > > > > > > > > -- > > > -- Guozhang > > > > > > > > > -- > -- Guozhang >