Skip to content

deps: bump google-cloud-bigtable to 2.81.0 - #4626

Merged
gcf-merge-on-green[bot] merged 5 commits into
googleapis:mainfrom
mutianf:bump-bigtable-2.81.0
Aug 14, 2026
Merged

gcf-merge-on-green[bot] merged 5 commits into
googleapis:mainfrom
mutianf:bump-bigtable-2.81.0

Conversation

@mutianf

@mutianf mutianf commented Aug 13, 2026

Copy link
Copy Markdown
Contributor
  • Bump bigtable.version 2.77.0 -> 2.81.0 and emulator 0.214.0 -> 0.218.0
  • Pin slf4j-api to 2.0.16 (veneer needs 2.0.x, hbase ships 1.7.x) so RequireUpperBoundDeps is satisfied; add slf4j-api to hbase-targeted verify-mirror-deps ignore lists
  • Bump maven-shade-plugin to 3.6.0 (ASM 9 handles the Java 17 multi-release classes jackson-core 2.18.x now pulls in transitively)
  • Exclude dead-weight jackson multi-release FastDoubleParser classes (META-INF/versions/*/com/fasterxml/**) from the 1.x/2.x shaded jars
  • Bump conscrypt to 2.6.0 in the shaded modules to match the veneer deps-bom

- Bump bigtable.version 2.77.0 -> 2.81.0 and emulator 0.214.0 -> 0.218.0
- Pin slf4j-api to 2.0.16 (veneer needs 2.0.x, hbase ships 1.7.x) so
  RequireUpperBoundDeps is satisfied; add slf4j-api to hbase-targeted
  verify-mirror-deps ignore lists
- Bump maven-shade-plugin to 3.6.0 (ASM 9 handles the Java 17 multi-release
  classes jackson-core 2.18.x now pulls in transitively)
- Exclude dead-weight jackson multi-release FastDoubleParser classes
  (META-INF/versions/*/com/fasterxml/**) from the 1.x/2.x shaded jars
- Bump conscrypt to 2.6.0 in the shaded modules to match the veneer deps-bom

Change-Id: I68c2a7fb2585babe601e0ad71bdb1eb8fb04a44d
@mutianf
mutianf requested a review from a team as a code owner August 13, 2026 20:10
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigtable Issues related to the googleapis/java-bigtable-hbase API. labels Aug 13, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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 Bigtable dependency version to 2.81.0, the emulator to 0.218.0, and the maven-shade-plugin to 3.6.0, while adding exclusions for multi-release jackson-core classes and ignoring slf4j-api mismatches across submodules. The reviewer's feedback recommends defining central Maven properties for the slf4j and conscrypt versions in the root POM rather than hardcoding them in submodules, which would improve maintainability and prevent version drift.

Comment thread pom.xml Resolved
Comment thread pom.xml Resolved
Address review feedback: define slf4j.version and conscrypt.version in the
root pom properties and reference them from dependencyManagement and the
shaded module poms instead of hardcoding.

Change-Id: I3954193069ad1ae794f5ba65708f6a3dedffb276
Change-Id: I6ce876f481d0e959eda3c0fa7cd032155f66b094
@mutianf mutianf added automerge Merge the pull request once unit tests and other checks pass. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Aug 13, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 13, 2026
- exclude jspecify from the bigtable-hbase test classpath: gax 2.83.0's
  @NullMarked (@target ElementType.MODULE) breaks Mockito on Java 8; use
  withoutAnnotations() for the Credentials mocks (TYPE_USE @nullable)
- record ReadRows first-response latency regardless of OperationType, which
  is now Unary for bounded single-row reads

Change-Id: Iac53d9d8aa9a5a0482f58604064f2de40ff6b94b
The Java 8 Mockito failure (ArrayStoreException from gax 2.83.0's
@NullMarked) was previously fixed by excluding org.jspecify:jspecify
from google-cloud-bigtable and the test deps. That stripped jspecify
from the compile classpath, which cascaded to downstream modules
(bigtable-hbase-1.x/2.x and the *-shaded modules lost it at compile
scope) and broke their verify-mirror-deps check against
google-cloud-bigtable (expected 1.0.0, got null).

Keep jspecify on the compile classpath and drop it only from the core
module's test runtime via maven-surefire-plugin classpathDependencyExcludes.
Same runtime effect for the mocks, zero blast radius on downstream
modules or shaded jars, no ignoredDependencies needed.

Change-Id: If613073c3dcbde530a6bd76405e0d35a16123acc
@mutianf mutianf added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 14, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 14, 2026
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 5ead10a into googleapis:main Aug 14, 2026
17 of 19 checks passed
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 14, 2026
@mutianf
mutianf deleted the bump-bigtable-2.81.0 branch August 14, 2026 18:34
mutianf added a commit that referenced this pull request Sep 3, 2026
…4632)

* fix: stop publishing a bigtable-beam-import pom with no dependencies

bigtable-beam-import attaches its shaded jar under a classifier, so the
main artifact is the thin, unshaded jar and its pom must keep every
compile dependency. maven-shade-plugin still strips them from the
generated dependency-reduced pom in that configuration (MSHADE-419),
which is not fixed in 3.6.0 despite what the comment in the root pom
claimed. The bump to 3.6.0 in #4626 therefore published 2.20.0 and
2.20.1 poms declaring zero compile dependencies.

Consumers resolving the artifact from Maven Central get no transitive
deps at all. GoogleCloudPlatform/DataflowTemplates hits this staging the
Cloud_Bigtable_to_GCS_SequenceFile template, which fails with
ClassNotFoundException: org.apache.hadoop.hbase.io.ImmutableBytesWritable.
Nothing caught it in-repo because the reactor resolves sibling modules
from source poms and never reads dependency-reduced-pom.xml.

- set createDependencyReducedPom=false explicitly on the module rather
  than relying on a plugin default that changed between 3.2.4 and 3.6.0
- add a verify-published-pom-deps goal to bigtable-build-helper that
  inspects the pom that would actually be deployed and fails the build
  if a required compile dependency is missing, wired into the module's
  verify phase; covered by integration tests for both the healthy and
  the MSHADE-419-stripped case
- correct the root pom comment and drop the renovate rule that pinned
  maven-shade-plugin away from 3.3.0, which was both an incomplete
  description of the bug and moot now that the flag is explicit

Change-Id: I2d269c60175e10da7e5b361f410dd06f7861ba48

* fix: guard against a missing or half-declared pom in verify-published-pom-deps

Change-Id: Ice5b8a44978b4833bc48c5fe037a263bbce68b77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/java-bigtable-hbase API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

⌂ 换网址