-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-25954][SS][FOLLOWUP][test-maven] Add Zookeeper 3.4.7 test dependency to Kafka modules #23119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…fka-0-10 module https://zookeeper.apache.org/doc/r3.4.7/api/org/apache/zookeeper/AsyncCallback.MultiCallback.html KafkaMicroBatchV2SourceSuite: *** RUN ABORTED *** java.lang.NoClassDefFoundError: org/apache/zookeeper/AsyncCallback$MultiCallback at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1693) at kafka.server.KafkaServer.createZkClient$1(KafkaServer.scala:348) at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:372) at kafka.server.KafkaServer.startup(KafkaServer.scala:202) at org.apache.spark.sql.kafka010.KafkaTestUtils.$anonfun$setupEmbeddedKafkaServer$2(KafkaTestUtils.scala:120) at org.apache.spark.sql.kafka010.KafkaTestUtils.$anonfun$setupEmbeddedKafkaServer$2$adapted(KafkaTestUtils.scala:116) at org.apache.spark.util.Utils$.$anonfun$startServiceOnPort$2(Utils.scala:2221) at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:155) at org.apache.spark.util.Utils$.startServiceOnPort(Utils.scala:2213) at org.apache.spark.sql.kafka010.KafkaTestUtils.setupEmbeddedKafkaServer(KafkaTestUtils.scala:123) ... Cause: java.lang.ClassNotFoundException: org.apache.zookeeper.AsyncCallback$MultiCallback at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1693) at kafka.server.KafkaServer.createZkClient$1(KafkaServer.scala:348) at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:372) at kafka.server.KafkaServer.startup(KafkaServer.scala:202) at org.apache.spark.sql.kafka010.KafkaTestUtils.$anonfun$setupEmbeddedKafkaServer$2(KafkaTestUtils.scala:120) at org.apache.spark.sql.kafka010.KafkaTestUtils.$anonfun$setupEmbeddedKafkaServer$2$adapted(KafkaTestUtils.scala:116) ... a
|
Wondering why tests passed with sbt. Does sbt handles deps in a different way? |
|
|
|
Retest this please. |
|
I forgot |
|
Test build #99198 has finished for PR 23119 at commit
|
|
Retest this please. |
|
Test build #99199 has finished for PR 23119 at commit
|
|
ChunkFetchIntegrationSuite seems to be very flacky in Maven build. This causes two consequtive irrelevant failures in this PR. |
|
Retest this please. |
|
I've seen similar flakyness with |
|
Test build #99200 has finished for PR 23119 at commit
|
|
Retest this please. |
|
Test build #99196 has finished for PR 23119 at commit
|
|
The previous successful one was |
|
Retest this please. |
|
The current one hangs on |
|
Retest this please. |
|
Test build #99204 has finished for PR 23119 at commit
|
|
Retest this please |
|
Test build #99203 has finished for PR 23119 at commit
|
|
Test build #99202 has finished for PR 23119 at commit
|
|
Hi, @cloud-fan . Could you review this, please? I'd like to merge this because this causes UT failures in both |
|
Test build #99205 has finished for PR 23119 at commit
|
|
Merged to master to recover |
gaborgsomogyi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit late but LGTM.
|
LGTM too |
|
Thanks, @gaborgsomogyi and @HyukjinKwon . |
…ndency to Kafka modules ## What changes were proposed in this pull request? This is a followup of apache#23099 . After upgrading to Kafka 2.1.0, maven test fails due to Zookeeper test dependency while sbt test succeeds. - [sbt test on master branch](https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-sbt-hadoop-2.7/5203/) - [maven test on master branch](https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-2.7/5653/) The root cause is that the embedded Kafka server is using [Zookeepr 3.4.7 API](https://zookeeper.apache.org/doc/r3.4.7/api/org/apache/zookeeper/AsyncCallback.MultiCallback.html ) while Apache Spark provides Zookeeper 3.4.6. This PR adds a test dependency. ``` KafkaMicroBatchV2SourceSuite: *** RUN ABORTED *** ... org.apache.spark.sql.kafka010.KafkaTestUtils.setupEmbeddedKafkaServer(KafkaTestUtils.scala:123) ... Cause: java.lang.ClassNotFoundException: org.apache.zookeeper.AsyncCallback$MultiCallback at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1693) at kafka.server.KafkaServer.createZkClient$1(KafkaServer.scala:348) at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:372) at kafka.server.KafkaServer.startup(KafkaServer.scala:202) at org.apache.spark.sql.kafka010.KafkaTestUtils.$anonfun$setupEmbeddedKafkaServer$2(KafkaTestUtils.scala:120) at org.apache.spark.sql.kafka010.KafkaTestUtils.$anonfun$setupEmbeddedKafkaServer$2$adapted(KafkaTestUtils.scala:116) ... ``` ## How was this patch tested? Pass the maven Jenkins test. Closes apache#23119 from dongjoon-hyun/SPARK-25954-2. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
This is a followup of #23099 . After upgrading to Kafka 2.1.0, maven test fails due to Zookeeper test dependency while sbt test succeeds.
The root cause is that the embedded Kafka server is using Zookeepr 3.4.7 API while Apache Spark provides Zookeeper 3.4.6. This PR adds a test dependency.
How was this patch tested?
Pass the maven Jenkins test.