Skip to content

Upgrade Guava to 33.8.0-jre, Netty to 4.1.141.Final, Java 11, and CDAP to 6.11.7-SNAPSHOT - #27

Merged
aviachar merged 1 commit into
data-integrations:developfrom
AbhishekKumar9984:guava_fixes
Nov 27, 2026
Merged

aviachar merged 1 commit into
data-integrations:developfrom
AbhishekKumar9984:guava_fixes

Conversation

@AbhishekKumar9984

@AbhishekKumar9984 AbhishekKumar9984 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  1. Guava & Netty security fixes: Upgrades com.google.guava:guava to 33.8.0-jre (enforced via maven-enforcer-plugin) and upgrades Netty from 4.1.16.Final to 4.1.141.Final via io.netty:netty-bom (matching CDAP release/6.11), scoping netty-all/netty-http in confluent-kafka-plugins to test so Netty is no longer bundled in the plugin JAR.
  2. CDAP & runtime upgrade: Updates <cdap.version> to 6.11.7-SNAPSHOT, sets parent artifact ranges to [6.11.2-SNAPSHOT,7.0.0-SNAPSHOT), migrates to Hadoop 3.3.6 / Spark 3.3.2 (Scala 2.12), and targets Java 11 (<release>11</release>).

Changes

  • pom.xml & confluent-kafka-plugins/pom.xml:
    • Upgraded <guava.version> to 33.8.0-jre, pinned com.google.guava:guava in <dependencyManagement>, and added maven-enforcer-plugin (3.5.0) banning Guava < 33.8.0-jre.
    • Upgraded <netty.version> from 4.1.16.Final to 4.1.141.Final, imported io.netty:netty-bom:${netty.version} in root <dependencyManagement>, and scoped netty-all and netty-http in confluent-kafka-plugins/pom.xml to test (matching root pom.xml and kafka-plugins-client/pom.xml).
    • Set <cdap.version> to 6.11.7-SNAPSHOT, <hadoop.version> to 3.3.6, <spark3.version> to 3.3.2 (Scala 2.12), and parent ranges in cdap-maven-plugin to system:cdap-data-pipeline[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT) and system:cdap-data-streams[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT).
    • Migrated Maven compiler, surefire, bundle, and javadoc plugins for Java 11.
  • Integration tests: Updated Spark 3 / CDAP 6.11 test compatibility across confluent-kafka-plugins and kafka-plugins-common.

Verification

  • mvn clean package (Temurin JDK 11, against published io.cdap.cdap:cdap:6.11.7-SNAPSHOT, prior to Netty 4.1.141.Final bump): BUILD SUCCESS (Tests run: 11, Failures: 0, Errors: 0, Skipped: 3; Enforcer, RAT, Checkstyle, and cdap-maven-plugin all pass). (Note: io.netty:netty-bom:4.1.141.Final is verified on Maven Central, but not yet mirrored in Corp Airlock for local re-build on this workstation.)
  • Verified generated confluent-kafka-plugins-2.1.0-SNAPSHOT.json declares parents: ["system:cdap-data-pipeline[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT)", "system:cdap-data-streams[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT)"].
  • Testing evidence: https://docs.google.com/spreadsheets/d/1Cw6Z_k3wlks7sAC4-Kg6FTIMRL7-zxLlsJIXvVJLrb8/edit?gid=0#gid=0

@dheeraj-kholia-cs dheeraj-kholia-cs left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deepika-lalwani123 deepika-lalwani123 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread pom.xml Resolved
@AbhishekKumar9984

Copy link
Copy Markdown
Contributor Author

@deepika-lalwani123 Updated the PR description to call out the dependency on cdapio/cdap#16279, and addressed all inline review comments.

@deepika-lalwani123 deepika-lalwani123 left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more points on the latest commit:

  1. No build has run on the head commit (2d6a844). There is no build check on this PR, and the integration tests now skip without credentials, so nothing here has been compiled or tested by CI. AbstractKafkaBatchSourceTest uses the CDAP test framework, which is currently failing in the database, kafka and ftp PRs with NoSuchMethodError: ...ArtifactLocalizerService.stopAndWait() against 6.12.0-SNAPSHOT. Please get the build workflow running here.

  2. Hadoop / Spark versions. cdap.version is 6.12.0-SNAPSHOT, but hadoop.version is still 2.10.2 (pom.xml L98) and spark3.version is 3.1.2 (L93). In the mongodb PR you noted that Hadoop 2.x with CDAP 6.12 fails with ClassNotFoundException: 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?

  3. Parent artifact range is not tightened. confluent-kafka-plugins/pom.xml L290-291 still has [6.8.0,7.0.0-SNAPSHOT) while cdap.version is now 6.12.0-SNAPSHOT. Please raise the lower bound to 6.12.0-SNAPSHOT, as was done in the ftp, servicenow and salesforce PRs.

  4. Snapshot repository still points at oss.sonatype.org (``pom.xml L68 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.

@AbhishekKumar9984 AbhishekKumar9984 changed the title guava fixes Upgrade Guava to 32.0.0-jre, migrate to Hadoop 3.3.6 / Spark 3.3.2, and bump minimum CDAP to 6.12.0-SNAPSHOT Nov 20, 2026
@AbhishekKumar9984

Copy link
Copy Markdown
Contributor Author

@deepika-lalwani123 Thanks for the review and approval! Addressed all 4 points in 132f4f4:

  1. Build & test verification: Checked repository workflows — data-integrations/confluent does not currently have a .github/workflows/build.yml workflow on develop (happy to add one in a separate PR if desired). Verified locally under JDK 8 (mvn clean package) against a CDAP 6.12.0-SNAPSHOT built with Guava 32.0.0-jre: full reactor build, Enforcer, Checkstyle, and packaging succeed (Tests run: 11, Failures: 0, Errors: 0, Skipped: 3 — all 8 config unit tests pass, and all 3 ConfluentStreaming*Test suites start and stop the CDAP HydratorTestBase runtime cleanly before skipping credential-gated test methods). As with the other CDAP 6.12 PRs, we'll hold merging until Upgrade Guava library to 32.0.0-jre cdapio/cdap#16291 merges and publishes a Guava-32 6.12.0-SNAPSHOT to Central Snapshots (updated the PR description to track Upgrade Guava library to 32.0.0-jre cdapio/cdap#16291).
  2. Hadoop / Spark versions: Aligned with CDAP 6.12.0-SNAPSHOT and kafka-plugins — bumped <hadoop.version> from 2.10.2 to 3.3.6 (with slf4j-reload4j/reload4j exclusions) and <spark3.version> from 3.1.2 to 3.3.2.
  3. Parent artifact range: Tightened both cdap-data-pipeline and cdap-data-streams in confluent-kafka-plugins/pom.xml from [6.8.0,7.0.0-SNAPSHOT) to [6.12.0-SNAPSHOT,7.0.0-SNAPSHOT).
  4. Snapshot repository URL: Replaced the legacy oss.sonatype.org repository entries in pom.xml with https://central.sonatype.com/repository/maven-snapshots (and updated the PR title).

@AbhishekKumar9984 AbhishekKumar9984 changed the title Upgrade Guava to 32.0.0-jre, migrate to Hadoop 3.3.6 / Spark 3.3.2, and bump minimum CDAP to 6.12.0-SNAPSHOT Upgrade Guava to 33.8.0-jre, migrate to Java 11 / Hadoop 3.3.6 / Spark 3.3.2, and update CDAP to 6.11.7-SNAPSHOT Nov 26, 2026
…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
@AbhishekKumar9984 AbhishekKumar9984 changed the title Upgrade Guava to 33.8.0-jre, migrate to Java 11 / Hadoop 3.3.6 / Spark 3.3.2, and update CDAP to 6.11.7-SNAPSHOT Upgrade Guava to 33.8.0-jre, Netty to 4.1.141.Final, Java 11, and CDAP to 6.11.7-SNAPSHOT Nov 26, 2026
@aviachar
aviachar merged commit 870902d into data-integrations:develop Nov 27, 2026
7 checks passed
aviachar added a commit that referenced this pull request Nov 30, 2026
[🍒] Cherry-pick #27 onto release/2.0 and bump version to 2.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants