Skip to content

Upgrade Guava from 32.0.0-jre to 33.8.0-jre - #92

Merged
sahusanket merged 1 commit into
developfrom
feat/guava-33.7.2
Nov 25, 2026
Merged

sahusanket merged 1 commit into
developfrom
feat/guava-33.7.2

Conversation

@sahusanket

@sahusanket sahusanket commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bump com.google.guava:guava from 32.0.0-jre to 33.8.0-jre before cutting the 0.15.0 release so cdapio/common and downstream consumers resolve both CVE-2026-102554 and CVE-2026-118042 (>= 33.8.0-jre).

Testing

  • mvn clean install (including unit tests and Checkstyle) passed across all 6 reactor modules on Java 11.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the Guava dependency version in pom.xml from 32.0.0-jre to 33.7.2-jre. I have no feedback to provide as there are no review comments or issues identified.

@sahusanket sahusanket self-assigned this Nov 24, 2026
sahusanket added a commit to cdapio/cdap that referenced this pull request Nov 25, 2026
Move CDAP from Guava 13.0.1 to 33.7.2-jre and Guice 4.0 to 4.2.3 (no_aop),
inherit root guava.version across all modules and extensions (importing
guava-bom before libraries-bom where needed), pin guice-servlet to 4.2.3,
and pick up the Twill (1.5.0-SNAPSHOT) and cdap-common (0.15.0-SNAPSHOT)
builds compiled against Guava 33.7.2-jre (cdapio/twill#75, cdapio/common#92).

API replacements keeping Guava 13 behavior:
- Service start/stop: Guava 32+ removed start(), stop(), startAndWait(),
  and stopAndWait(). Callers use helpers in io.cdap.cdap.common.service.Services
  with fast-path state returns (no listener retention on idempotent calls),
  immediate failure propagation if startAsync() throws while still NEW,
  and concurrent shutdown handling.
- KafkaClientModule reference-counted ForwardingZKClientService overrides
  awaitRunning() for non-owned shared and already-terminated clients, guards
  startAsync() on non-NEW state, clamps stopAsync() reference counts at zero,
  and guards awaitTerminated() on unstarted NEW state.
- Objects.toStringHelper/firstNonNull -> MoreObjects; Stopwatch constructors
  and elapsedTime/elapsedMillis -> createStarted/createUnstarted/elapsed;
  sameThreadExecutor -> directExecutor/newDirectExecutorService; hashString/
  putString -> hashUnencodedChars/putUnencodedChars; Closeables.closeQuietly
  -> io.cdap.cdap.common.io.Closeables.

Behavior parity, classloading, caching, and Tephra:
- Remove obsolete GuavaClassRewriter from MainClassLoader now that Guava
  33.7.2-jre natively provides MoreExecutors.directExecutor() and
  Preconditions overloads.
- DefaultCube builds a HashMap-backed table to preserve metric series order.
- AbstractRetryableScheduledService, CoreSchedulerService,
  LocalLogProcessorPipeline, WorkerDriver, and OperationDriver override
  serviceName() to preserve thread names.
- SparkResourceFilter drops the Guava Optional parent passthrough and fixes
  acceptPackage(); DefaultArtifactInspector, PluginClassLoader, and
  ArtifactClassLoaderFactory filter parent artifacts by Export-Package.
- DataprocRuntimeJobManager stamps and verifies cdap.build.time metadata on
  cached GCS twill/launcher jars and scopes local cache dirs by build time;
  DataprocJobMain sorts expanded lib jars deterministically by filename.
- 19 Tephra 0.15.0-incubating classes are forked into cdap-data-fabric (with
  TransactionManager startAndWait/stopAndWait bridges) and stripped from
  staged tephra-core jars in dist, deb-prepare, cdap-gateway, and K8s Spark;
  cdap-coverage and cdap-unit-test place cdap-data-fabric ahead of
  cdap-tms/tephra-core.
sahusanket added a commit to cdapio/cdap that referenced this pull request Nov 25, 2026
Move CDAP from Guava 13.0.1 to 33.7.2-jre and Guice 4.0 to 4.2.3 (no_aop),
inherit root guava.version across all modules and extensions (importing
guava-bom before libraries-bom where needed), pin guice-servlet to 4.2.3,
and pick up the Twill (1.5.0-SNAPSHOT) and cdap-common (0.15.0-SNAPSHOT)
builds compiled against Guava 33.7.2-jre (cdapio/twill#75, cdapio/common#92).

API replacements keeping Guava 13 behavior:
- Service start/stop: Guava 32+ removed start(), stop(), startAndWait(),
  and stopAndWait(). Callers use helpers in io.cdap.cdap.common.service.Services
  with fast-path state returns (no listener retention on idempotent calls),
  immediate failure propagation if startAsync() throws while still NEW,
  and concurrent shutdown handling.
- KafkaClientModule reference-counted ForwardingZKClientService overrides
  awaitRunning() for non-owned shared and already-terminated clients, guards
  startAsync() on non-NEW state, clamps stopAsync() reference counts at zero,
  and guards awaitTerminated() on unstarted NEW state.
- Objects.toStringHelper/firstNonNull -> MoreObjects; Stopwatch constructors
  and elapsedTime/elapsedMillis -> createStarted/createUnstarted/elapsed;
  sameThreadExecutor -> directExecutor/newDirectExecutorService; hashString/
  putString -> hashUnencodedChars/putUnencodedChars; Closeables.closeQuietly
  -> io.cdap.cdap.common.io.Closeables.

Behavior parity, classloading, caching, and Tephra:
- Remove obsolete GuavaClassRewriter from MainClassLoader now that Guava
  33.7.2-jre natively provides MoreExecutors.directExecutor() and
  Preconditions overloads.
- DefaultCube builds a HashMap-backed table to preserve metric series order.
- AbstractRetryableScheduledService, CoreSchedulerService,
  LocalLogProcessorPipeline, WorkerDriver, and OperationDriver override
  serviceName() to preserve thread names.
- SparkResourceFilter drops the Guava Optional parent passthrough and fixes
  acceptPackage(); DefaultArtifactInspector, PluginClassLoader, and
  ArtifactClassLoaderFactory filter parent artifacts by Export-Package.
- DataprocRuntimeJobManager stamps and verifies cdap.build.time metadata on
  cached GCS twill/launcher jars and scopes local cache dirs by build time;
  DataprocJobMain sorts expanded lib jars deterministically by filename.
- 19 Tephra 0.15.0-incubating classes are forked into cdap-data-fabric (with
  TransactionManager startAndWait/stopAndWait bridges) and stripped from
  staged tephra-core jars in dist, deb-prepare, cdap-gateway, and K8s Spark;
  cdap-coverage and cdap-unit-test place cdap-data-fabric ahead of
  cdap-tms/tephra-core.
sahusanket added a commit to cdapio/cdap that referenced this pull request Nov 25, 2026
Move CDAP from Guava 13.0.1 to 33.7.2-jre and Guice 4.0 to 4.2.3 (no_aop),
inherit root guava.version across all modules and extensions (importing
guava-bom before libraries-bom where needed), pin guice-servlet to 4.2.3,
and pick up the Twill (1.5.0-SNAPSHOT) and cdap-common (0.15.0-SNAPSHOT)
builds compiled against Guava 33.7.2-jre (cdapio/twill#75, cdapio/common#92).

API replacements keeping Guava 13 behavior:
- Service start/stop: Guava 32+ removed start(), stop(), startAndWait(),
  and stopAndWait(). Callers use helpers in io.cdap.cdap.common.service.Services
  with fast-path state returns (no listener retention on idempotent calls),
  immediate failure propagation if startAsync() throws while still NEW,
  and concurrent shutdown handling.
- KafkaClientModule reference-counted ForwardingZKClientService overrides
  awaitRunning() for non-owned shared and already-terminated clients, guards
  startAsync() on non-NEW state, clamps stopAsync() reference counts at zero,
  and guards awaitTerminated() on unstarted NEW state.
- Objects.toStringHelper/firstNonNull -> MoreObjects; Stopwatch constructors
  and elapsedTime/elapsedMillis -> createStarted/createUnstarted/elapsed;
  sameThreadExecutor -> directExecutor/newDirectExecutorService; hashString/
  putString -> hashUnencodedChars/putUnencodedChars; Closeables.closeQuietly
  -> io.cdap.cdap.common.io.Closeables.

Behavior parity, classloading, caching, and Tephra:
- Remove obsolete GuavaClassRewriter from MainClassLoader now that Guava
  33.7.2-jre natively provides MoreExecutors.directExecutor() and
  Preconditions overloads.
- DefaultCube builds a HashMap-backed table to preserve metric series order.
- AbstractRetryableScheduledService, CoreSchedulerService,
  LocalLogProcessorPipeline, WorkerDriver, and OperationDriver override
  serviceName() to preserve thread names.
- SparkResourceFilter drops the Guava Optional parent passthrough and fixes
  acceptPackage(); DefaultArtifactInspector, PluginClassLoader, and
  ArtifactClassLoaderFactory filter parent artifacts by Export-Package.
- DataprocRuntimeJobManager stamps and verifies cdap.build.time metadata on
  cached GCS twill/launcher jars and scopes local cache dirs by build time;
  DataprocJobMain sorts expanded lib jars deterministically by filename.
- 19 Tephra 0.15.0-incubating classes are forked into cdap-data-fabric (with
  TransactionManager startAndWait/stopAndWait bridges) and stripped from
  staged tephra-core jars in dist, deb-prepare, cdap-gateway, and K8s Spark;
  cdap-coverage and cdap-unit-test place cdap-data-fabric ahead of
  cdap-tms/tephra-core.
Comment thread pom.xml Outdated
<findbugs.jsr305.version>2.0.1</findbugs.jsr305.version>
<geronimo.version>2.0.0</geronimo.version>
<guava.version>32.0.0-jre</guava.version>
<guava.version>33.7.2-jre</guava.version>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bump com.google.guava:guava from 32.0.0-jre to 33.8.0-jre so cdapio/common
and downstream consumers pick up fixes for CVE-2026-102554 and
CVE-2026-118042.
@sahusanket sahusanket changed the title Upgrade Guava from 32.0.0-jre to 33.7.2-jre Upgrade Guava from 32.0.0-jre to 33.8.0-jre Nov 25, 2026
sahusanket added a commit to cdapio/cdap that referenced this pull request Nov 25, 2026
Move CDAP from Guava 13.0.1 to 33.8.0-jre (resolving CVE-2026-102554 and
CVE-2026-118042) and Guice 4.0 to 4.2.3 (no_aop), inherit root guava.version
across all modules and extensions (importing guava-bom before libraries-bom
where needed), pin guice-servlet to 4.2.3, and pick up the Twill
(1.5.0-SNAPSHOT) and cdap-common (0.15.0-SNAPSHOT) builds compiled against
Guava 33.8.0-jre (cdapio/twill#75, cdapio/common#92).

API replacements keeping Guava 13 behavior:
- Service start/stop: Guava 32+ removed start(), stop(), startAndWait(),
  and stopAndWait(). Callers use helpers in io.cdap.cdap.common.service.Services
  with fast-path state returns (no listener retention on idempotent calls),
  immediate failure propagation if startAsync() throws while still NEW,
  and concurrent shutdown handling.
- KafkaClientModule reference-counted ForwardingZKClientService overrides
  awaitRunning() for non-owned shared and already-terminated clients, guards
  startAsync() on non-NEW state, clamps stopAsync() reference counts at zero,
  and guards awaitTerminated() on unstarted NEW state.
- Objects.toStringHelper/firstNonNull -> MoreObjects; Stopwatch constructors
  and elapsedTime/elapsedMillis -> createStarted/createUnstarted/elapsed;
  sameThreadExecutor -> directExecutor/newDirectExecutorService; hashString/
  putString -> hashUnencodedChars/putUnencodedChars; Closeables.closeQuietly
  -> io.cdap.cdap.common.io.Closeables.

Behavior parity, classloading, caching, and Tephra:
- Remove obsolete GuavaClassRewriter from MainClassLoader now that Guava
  33.8.0-jre natively provides MoreExecutors.directExecutor() and
  Preconditions overloads.
- DefaultCube builds a HashMap-backed table to preserve metric series order.
- AbstractRetryableScheduledService, CoreSchedulerService,
  LocalLogProcessorPipeline, WorkerDriver, and OperationDriver override
  serviceName() to preserve thread names.
- SparkResourceFilter drops the Guava Optional parent passthrough and fixes
  acceptPackage(); DefaultArtifactInspector, PluginClassLoader, and
  ArtifactClassLoaderFactory filter parent artifacts by Export-Package.
- DataprocRuntimeJobManager stamps and verifies cdap.build.time metadata on
  cached GCS twill/launcher jars and scopes local cache dirs by build time;
  DataprocJobMain sorts expanded lib jars deterministically by filename.
- 19 Tephra 0.15.0-incubating classes are forked into cdap-data-fabric (with
  TransactionManager startAndWait/stopAndWait bridges) and stripped from
  staged tephra-core jars in dist, deb-prepare, cdap-gateway, and K8s Spark;
  cdap-coverage and cdap-unit-test place cdap-data-fabric ahead of
  cdap-tms/tephra-core.
@sahusanket
sahusanket merged commit f6fe1a8 into develop Nov 25, 2026
11 checks passed
@sahusanket
sahusanket deleted the feat/guava-33.7.2 branch November 25, 2026 10:14
sahusanket added a commit to cdapio/cdap that referenced this pull request Nov 25, 2026
Move CDAP from Guava 13.0.1 to 33.8.0-jre (resolving CVE-2026-102554 and
CVE-2026-118042) and Guice 4.0 to 4.2.3 (no_aop), inherit root guava.version
across all modules and extensions (importing guava-bom before libraries-bom
where needed), pin guice-servlet to 4.2.3, and pick up the Twill
(1.5.0-SNAPSHOT) and cdap-common (0.15.0-SNAPSHOT) builds compiled against
Guava 33.8.0-jre (cdapio/twill#75, cdapio/common#92).

API replacements keeping Guava 13 behavior:
- Service start/stop: Guava 32+ removed start(), stop(), startAndWait(),
  and stopAndWait(). Callers use helpers in io.cdap.cdap.common.service.Services
  with fast-path state returns (no listener retention on idempotent calls),
  immediate failure propagation if startAsync() throws while still NEW,
  and concurrent shutdown handling.
- KafkaClientModule reference-counted ForwardingZKClientService overrides
  awaitRunning() for non-owned shared and already-terminated clients, guards
  startAsync() on non-NEW state, clamps stopAsync() reference counts at zero,
  and guards awaitTerminated() on unstarted NEW state.
- Objects.toStringHelper/firstNonNull -> MoreObjects; Stopwatch constructors
  and elapsedTime/elapsedMillis -> createStarted/createUnstarted/elapsed;
  sameThreadExecutor -> directExecutor/newDirectExecutorService; hashString/
  putString -> hashUnencodedChars/putUnencodedChars; Closeables.closeQuietly
  -> io.cdap.cdap.common.io.Closeables.

Behavior parity, classloading, caching, and Tephra:
- Remove obsolete GuavaClassRewriter from MainClassLoader now that Guava
  33.8.0-jre natively provides MoreExecutors.directExecutor() and
  Preconditions overloads.
- DefaultCube builds a HashMap-backed table to preserve metric series order.
- AbstractRetryableScheduledService, CoreSchedulerService,
  LocalLogProcessorPipeline, WorkerDriver, and OperationDriver override
  serviceName() to preserve thread names.
- SparkResourceFilter drops the Guava Optional parent passthrough and fixes
  acceptPackage(); DefaultArtifactInspector, PluginClassLoader, and
  ArtifactClassLoaderFactory filter parent artifacts by Export-Package.
- DataprocRuntimeJobManager stamps and verifies cdap.build.time metadata on
  cached GCS twill/launcher jars and scopes local cache dirs by build time;
  DataprocJobMain sorts expanded lib jars deterministically by filename.
- 19 Tephra 0.15.0-incubating classes are forked into cdap-data-fabric (with
  TransactionManager startAndWait/stopAndWait bridges) and stripped from
  staged tephra-core jars in dist, deb-prepare, cdap-gateway, and K8s Spark;
  cdap-coverage and cdap-unit-test place cdap-data-fabric ahead of
  cdap-tms/tephra-core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants