KAFKA-14256: Upgrade from Scala 2.13.8 to 2.13.10#12675
Conversation
f302d4f to
437733a
Compare
|
So the update to Scala 2.13.9 seems to have found a regression in the scalac compiler, reported upstream scala/bug#12648 |
437733a to
02c9145
Compare
|
So I have updated the PR with the following changes
The latest CI run has failed but it appears to be due to a possible unrelated problem, i.e. the zinc compiler has a timeout because kafka-streams-scala was compiling at the same time as core-scala @mimaison @cadonna @ijuma Would it be possible to retrigger the CI so I can see if this error is deterministic? If so I will have a look into the problem. |
|
I've kicked a new build: https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-12675/6/ |
|
Hmm, trying this locally with 2.8.2 (slightly forked), and the following test fails I haven't confirmed with 3.x yet though. |
|
So I managed to solve one problem but created another. So I have solved the issues with the zinc incremental compiler (it appears that the version of zinc was too old for the new Scala compiler being used) however now there is a problem of the where the I cannot produce the problem locally at all either, does anyone know if its possible to grab the report file directly from the CI so I can see what it's complaining about?
@vjanelle Can you setup a branch setup with your exact setup, I can then have a look into it. |
|
@mdedetrich Thanks for the PR. I have run this PR with rat verbose output bug fix Results are (#12785, https://github.com/apache/kafka/runs/9090714417): I can see be below rat task error. compilation errors with JDK 11 and Scala 2.13 |
|
@mdedetrich any update here? let us know if you need any help. |
|
I was busy last week so I didn't have time for it, will try to look later this week |
|
The following dependency should also be checked: |
|
@mdedetrich looks like confluent has something in their branch linked to here that would work for the arg matching issue. |
There was a problem hiding this comment.
Why do we have to do this instead of removing the suppressions that are no longer needed?
ee72e82 to
43b2e14
Compare
|
I rebased the branch and fixed the failing test. |
|
Java 8 and 11 passed. Java 17 had a few flaky unrelated failures:
|
In addition to the version bump, we also had to: * Update the zinc version * Workaround compiler warnings via suppression (proper fix in a follow up) * Adjust `testDeleteTopicDoesNotRetryThrottlingQuotaExceededException` to fix a test failure Release notes: * https://github.com/scala/scala/releases/tag/v2.13.9 * https://github.com/scala/scala/releases/tag/v2.13.10 Reviewers: Ismael Juma <ismael@juma.me.uk>
This change bumps scala version to 2.13.12 and cherry-picks squashed combination of the following commits (only scala-related changes): dfaae31 MINOR: Upgrade Scala for Java 20/21 support (apache#13840) 6ae08c4 KAFKA-14256: Upgrade from Scala 2.13.8 to 2.13.10 (apache#12675) 7c2d672 MINOR: Update library dependencies (Q1 2022) (apache#11306) a8bd649 MINOR: Update Scala to 2.13.6 (apache#10711) dd34e40 MINOR: Update Scala to 2.13.5 (apache#10169) cbf8ad2 MINOR: Upgrade to Scala 2.13.4 (apache#9643) 7f90a58 MINOR: Update Scala to 2.13.3 (apache#8931)
In addition to the version bump, we also had to:
testDeleteTopicDoesNotRetryThrottlingQuotaExceededExceptionto fix a test failureRelease notes: