Repository navigation
Upgrade Guava to 33.8.0-jre, Netty to 4.1.141.Final, Java 11, and CDAP to 6.11.7-SNAPSHOT - #27
Conversation
deepika-lalwani123
left a comment
There was a problem hiding this comment.
This depends on cdapio/cdap#16279. The currently published 6.12.0-SNAPSHOT still has Guava 13, so this PR cannot be validated or merged until that PR merges and CDAP (and Twill) are published. Please call out the dependency in the PR description.
|
@deepika-lalwani123 Updated the PR description to call out the dependency on cdapio/cdap#16279, and addressed all inline review comments. |
There was a problem hiding this comment.
A few more points on the latest commit:
-
No build has run on the head commit (
2d6a844). There is nobuildcheck on this PR, and the integration tests now skip without credentials, so nothing here has been compiled or tested by CI.AbstractKafkaBatchSourceTestuses the CDAP test framework, which is currently failing in the database, kafka and ftp PRs withNoSuchMethodError: ...ArtifactLocalizerService.stopAndWait()against6.12.0-SNAPSHOT. Please get the build workflow running here. -
Hadoop / Spark versions.
cdap.versionis6.12.0-SNAPSHOT, buthadoop.versionis still2.10.2(pom.xmlL98) andspark3.versionis3.1.2(L93). In the mongodb PR you noted that Hadoop 2.x with CDAP 6.12 fails withClassNotFoundException: KeyProviderTokenIssuer, and kafka-plugins moved to Hadoop 3.3.6 / Spark 3.3.2 for the same reason. Is keeping the older versions here intended? -
Parent artifact range is not tightened.
confluent-kafka-plugins/pom.xmlL290-291 still has[6.8.0,7.0.0-SNAPSHOT)whilecdap.versionis now6.12.0-SNAPSHOT. Please raise the lower bound to6.12.0-SNAPSHOT, as was done in the ftp, servicenow and salesforce PRs. -
Snapshot repository still points at
oss.sonatype.org(``pom.xmlL68 and L78). `cdap.version` is now a snapshot, and `oss.sonatype.org/content/repositories/snapshots/.../cdap-api/6.12.0-SNAPSHOT/maven-metadata.xml` returns 404, while `https://central.sonatype.com/repository/maven-snapshots` returns 200. Please switch to the Central snapshots URL, as in the kafka-plugins PR.
|
@deepika-lalwani123 Thanks for the review and approval! Addressed all 4 points in 132f4f4:
|
…7-SNAPSHOT, and upgrade Netty to 4.1.141.Final - Upgrade Guava to 33.8.0-jre in root dependencyManagement and enforce via maven-enforcer-plugin - Update cdap.version to 6.11.7-SNAPSHOT (Hadoop 3.3.6, Spark 3.3.2), switch snapshot repo to Central Snapshots, and set cdapArtifacts parent ranges to [6.11.2-SNAPSHOT,7.0.0-SNAPSHOT) - Migrate Maven compiler/Surefire/JaCoCo/Bundle plugins to Java 11 - Upgrade Netty to 4.1.141.Final via io.netty:netty-bom in root dependencyManagement and scope netty-all/netty-http to test in confluent-kafka-plugins - Replace removed Guava/CDAP APIs in tests with Java 11 / Guava 33.8.0-jre equivalents
77ebd85 to
2db5741
Compare
[🍒] Cherry-pick #27 onto release/2.0 and bump version to 2.0.1
Summary
com.google.guava:guavato33.8.0-jre(enforced viamaven-enforcer-plugin) and upgrades Netty from4.1.16.Finalto4.1.141.Finalviaio.netty:netty-bom(matching CDAPrelease/6.11), scopingnetty-all/netty-httpinconfluent-kafka-pluginstotestso Netty is no longer bundled in the plugin JAR.<cdap.version>to6.11.7-SNAPSHOT, sets parent artifact ranges to[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT), migrates to Hadoop3.3.6/ Spark3.3.2(Scala2.12), and targets Java 11 (<release>11</release>).Changes
pom.xml&confluent-kafka-plugins/pom.xml:<guava.version>to33.8.0-jre, pinnedcom.google.guava:guavain<dependencyManagement>, and addedmaven-enforcer-plugin(3.5.0) banning Guava< 33.8.0-jre.<netty.version>from4.1.16.Finalto4.1.141.Final, importedio.netty:netty-bom:${netty.version}in root<dependencyManagement>, and scopednetty-allandnetty-httpinconfluent-kafka-plugins/pom.xmltotest(matching rootpom.xmlandkafka-plugins-client/pom.xml).<cdap.version>to6.11.7-SNAPSHOT,<hadoop.version>to3.3.6,<spark3.version>to3.3.2(Scala 2.12), and parent ranges incdap-maven-plugintosystem:cdap-data-pipeline[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT)andsystem:cdap-data-streams[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT).confluent-kafka-pluginsandkafka-plugins-common.Verification
mvn clean package(Temurin JDK 11, against publishedio.cdap.cdap:cdap:6.11.7-SNAPSHOT, prior to Netty4.1.141.Finalbump):BUILD SUCCESS(Tests run: 11, Failures: 0, Errors: 0, Skipped: 3; Enforcer, RAT, Checkstyle, andcdap-maven-pluginall pass). (Note:io.netty:netty-bom:4.1.141.Finalis verified on Maven Central, but not yet mirrored in Corp Airlock for local re-build on this workstation.)confluent-kafka-plugins-2.1.0-SNAPSHOT.jsondeclaresparents: ["system:cdap-data-pipeline[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT)", "system:cdap-data-streams[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT)"].