[DO-NOT-MERGE][SPARK-33913][SPARK-33921][BUILD] Upgrade kafka to 2.7.0 and Upgrade Scala version to 2.12.12#30939
[DO-NOT-MERGE][SPARK-33913][SPARK-33921][BUILD] Upgrade kafka to 2.7.0 and Upgrade Scala version to 2.12.12#30939viirya wants to merge 3 commits intoapache:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
| // ensure that logs from all replicas are deleted if delete topic is marked successful | ||
| assert(servers.forall(server => topicAndPartitions.forall(tp => | ||
| server.getLogManager().getLog(tp).isEmpty)), | ||
| server.getLogManager.getLog(tp).isEmpty)), |
|
Test build #133413 has finished for PR 30939 at commit
|
|
Yea, it's the same issue as embeddedkafka/embedded-kafka#202. We need to bump Scala patch version to match Kafka's. |
|
Created #30940 for upgrading Scala 2.12 patch version. |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Hi, @viirya . Sorry, but, are you sure about Scala 2.12.12?
I commented on your original Scala 2.12.12 PR, too.
Yea, I just saw it. If we don't want Scala 2.12.12, seems we cannot upgrade Kafka 2.7.0 too: #30940 (comment). |
|
I'm going to see Jenkins test to verify it, although I already experimented locally. |
|
No, @viirya . You may not notice the bug, because we detected the issues six month ago and made a Spark-side adaptation via SPARK-32436 on July 2020. Please see the discussion here for the technical details and Scala side bug IDs. AFAIK, the bug is in Scala 2.12.12 and we are waiting for 2.12.13 .
|
I'm reading scala/bug#12096. I understood Scala 2.12.12 was skipped now. I just meant if we cannot upgrade to Scala 2.12.12, then upgrading Kafka 2.7.0 is blocked by it. Then we may also wait for next Kafka version which uses Scala 2.12.13 (if there is). |
|
In short, the Scala compiler had a critical bug. |
|
Got it, @viirya . For testing purpose, there is no problem. |
|
Right, I think we'd just have to skip this for now. |
|
Test build #133425 has finished for PR 30939 at commit
|
|
Thanks for discussion. |
|
FYI, we adjusted the optimizer configs for Kafka to avoid the exact Scala patch version dependency issue: apache/kafka#10174 It will be part of Kafka 2.8.0. |
|
Thank you, @ijuma . |
What changes were proposed in this pull request?
This patch proposes to upgrade Kafka version to 2.7.0 and Scala 2.12 patch version to 2.12.12.
Why are the changes needed?
To catch up with latest Kafka bug fix and features: https://downloads.apache.org/kafka/2.7.0/RELEASE_NOTES.html
To catch up with bug fix and improvement of latest Scala 2.12 patch.
https://github.com/scala/scala/releases/tag/v2.12.11
https://github.com/scala/scala/releases/tag/v2.12.12
TypeTagcachestoXmethods that could expose the underlying mutability of a ListBuffer-generated collectionDoes this PR introduce any user-facing change?
No
How was this patch tested?
Unit test.