I tested this out. It seems that after the patch in
https://issues.apache.org/jira/browse/KAFKA-1245, we need to update the
gradle property file. Following up on that jira.

Thanks,

Jun


On Tue, Feb 18, 2014 at 3:23 PM, Jun Rao <jun...@gmail.com> wrote:

> Actually, most people don't need to create the gradle.properties file. You
> only need to do that if you plan to push artifacts to maven.
>
> Thanks,
>
> Jun
>
>
> 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
>>
>
>

Reply via email to