You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Joe Stein (JIRA)" <ji...@apache.org> on 2012/05/15 19:10:04 UTC

[jira] [Updated] (KAFKA-134) Upgrade Kafka to sbt 0.10.1

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

Joe Stein updated KAFKA-134:
----------------------------

    Attachment: kafka-134-v3-draft.patch

I have updated a new patch v3 https://gist.github.com/2699027 to resolve the issue I commented about when trying the previous patch

I checked it compiles with SBT 0.11.3 http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.11.3/sbt-launch.jar

new issue is that tests are not running at all just error

Josephs-MacBook-Pro:kafka_134 josephstein$ ./sbt test
[warn] Using project/plugins/ is deprecated for plugin configuration (/opt/apache/kafka_134/project/plugins).
[warn] Put .sbt plugin definitions directly in project/,
[warn]   .scala plugin definitions in project/project/,
[warn]   and remove the project/plugins/ directory.
[info] Loading project definition from /opt/apache/kafka_134/project/plugins
[info] Set current project to root (in build file:/opt/apache/kafka_134/)
[info] No tests to run for root/test:test
[info] No tests to run for contrib/test:test
[info] Compiling 45 Scala sources to /opt/apache/kafka_134/core/target/scala-2.9.1/test-classes...
[info] No tests to run for perf/test:test
[info] No tests to run for examples/test:test
[info] No tests to run for hadoop-consumer/test:test
[info] No tests to run for hadoop-producer/test:test
[warn] there were 16 deprecation warnings; re-run with -deprecation for details
[warn] one warning found
[error] Could not run test kafka.message.ByteBufferMessageSetTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.log.LogCorruptionTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.integration.AutoOffsetResetTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.message.CompressionUtilTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.integration.BackwardsCompatibilityTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.consumer.ZookeeperConsumerConnectorTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.producer.AsyncProducerTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.consumer.TopicFilterTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.zk.ZKLoadBalanceTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.message.MessageTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.message.FileMessageSetTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.log.SegmentListTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.log.LogOffsetTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.utils.UtilsTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.producer.SyncProducerTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.javaapi.integration.PrimitiveApiTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test unit.kafka.producer.ProducerMethodsTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.javaapi.consumer.ZookeeperConsumerConnectorTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.javaapi.producer.SyncProducerTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.consumer.FetcherTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.log4j.KafkaLog4jAppenderTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.integration.LazyInitProducerTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.network.SocketServerTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.log.LogManagerTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.integration.PrimitiveApiTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.zk.ZKEphemeralTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.server.ServerShutdownTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.log.LogTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.javaapi.message.ByteBufferMessageSetTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.javaapi.producer.ProducerTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Could not run test kafka.producer.ProducerTest: java.lang.ClassCastException: scala.collection.immutable.Set$EmptySet$ cannot be cast to scala.collection.generic.Addable
[error] Error: Total 0, Failed 0, Errors 0, Passed 0, Skipped 0
[error] Error during tests:
[error] 	kafka.log.LogManagerTest
[error] 	kafka.log.LogTest
[error] 	kafka.consumer.FetcherTest
[error] 	kafka.integration.AutoOffsetResetTest
[error] 	unit.kafka.producer.ProducerMethodsTest
[error] 	kafka.javaapi.integration.PrimitiveApiTest
[error] 	kafka.message.MessageTest
[error] 	kafka.producer.ProducerTest
[error] 	kafka.zk.ZKLoadBalanceTest
[error] 	kafka.network.SocketServerTest
[error] 	kafka.message.FileMessageSetTest
[error] 	kafka.javaapi.producer.SyncProducerTest
[error] 	kafka.javaapi.producer.ProducerTest
[error] 	kafka.javaapi.consumer.ZookeeperConsumerConnectorTest
[error] 	kafka.zk.ZKEphemeralTest
[error] 	kafka.log.LogCorruptionTest
[error] 	kafka.integration.LazyInitProducerTest
[error] 	kafka.log.SegmentListTest
[error] 	kafka.consumer.TopicFilterTest
[error] 	kafka.consumer.ZookeeperConsumerConnectorTest
[error] 	kafka.producer.AsyncProducerTest
[error] 	kafka.log4j.KafkaLog4jAppenderTest
[error] 	kafka.message.ByteBufferMessageSetTest
[error] 	kafka.server.ServerShutdownTest
[error] 	kafka.message.CompressionUtilTest
[error] 	kafka.log.LogOffsetTest
[error] 	kafka.javaapi.message.ByteBufferMessageSetTest
[error] 	kafka.integration.BackwardsCompatibilityTest
[error] 	kafka.integration.PrimitiveApiTest
[error] 	kafka.utils.UtilsTest
[error] 	kafka.producer.SyncProducerTest
[error] {file:/opt/apache/kafka_134/}core/test:test: Tests unsuccessful
[error] Total time: 31 s, completed May 15, 2012 12:05:45 AM

                
> Upgrade Kafka to sbt 0.10.1
> ---------------------------
>
>                 Key: KAFKA-134
>                 URL: https://issues.apache.org/jira/browse/KAFKA-134
>             Project: Kafka
>          Issue Type: Improvement
>          Components: packaging
>            Reporter: Joshua Hartman
>         Attachments: kafka-134-v2-draft.patch, kafka-134-v3-draft.patch, kafka_patch.txt
>
>
> Upgrading to sbt 0.10.1 is a nice to have as sbt moves forward. Plus, it's a requirement for me to help publish Kafka to maven :)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira