GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(spanner): fix grpc-gcp affinity cleanup and multiplexed channel usage leaks by rahul2393 · Pull Request #12726 · googleapis/google-cloud-java

Conversation

@rahul2393

@rahul2393 rahul2393 commented Apr 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

This change fixes two regressions in the Spanner Java client introduced around multiplexed session initialization and
grpc-gcp affinity handling.

1. Fix static CHANNEL_USAGE leak in MultiplexedSessionDatabaseClient

Fixes: #12693
MultiplexedSessionDatabaseClient stored per-SpannerImpl channel usage state in a static map but never removed
entries on close. After multiplexed client creation became unconditional in SpannerImpl.getDatabaseClient(),
applications that repeatedly created and closed Spanner instances could retain closed SpannerImpl objects, gRPC
channels, and related transport state indefinitely.

This change:

  • replaces the static Map<SpannerImpl, BitSet> with reference-counted shared state
  • removes the map entry when the last MultiplexedSessionDatabaseClient for a given SpannerImpl closes
  • preserves sharing semantics for multiple database clients created from the same SpannerImpl

2. Stop using bitset / bounded % numChannels affinity for grpc-gcp

For grpc-gcp-enabled paths, channel affinity should use the raw random channel hint and rely on explicit unbind /
cleanup, rather than:

  • bitset reservation
  • collapsing the hint with % numChannels

This change:

  • keeps grpc-gcp on raw random affinity keys in GapicSpannerRpc
  • removes % numChannels mapping from the grpc-gcp call path
  • keeps the old non-grpc-gcp GAX affinity behavior unchanged

3. Add explicit grpc-gcp affinity cleanup for multi-use read-only transaction close

Multi-use read-only transactions reuse a single random channel hint for the lifetime of the transaction. That hint
should remain stable across all reads in the transaction, then be explicitly cleaned up when the transaction closes.

This change:

  • adds a new RPC cleanup hook that carries both transaction id and channel hint
  • invokes that cleanup from multi-use read-only transaction close()
  • unbinds grpc-gcp affinity on transaction close without issuing an ExecuteSql RPC to Spanner
  • handles both:
    • location API disabled: cleanup via the underlying grpc-gcp channel
    • location API enabled: cleanup via KeyAwareChannel, using the routed endpoint associated with the transaction

4. Apply grpc-gcp affinity cleanup settings without implicitly enabling DCP

grpc-gcp affinity cleanup settings (affinityKeyLifetime, cleanupInterval) should be applied whether or not dynamic channel pool (DCP) is enabled.

This change:

  • always passes grpc-gcp channel-pool options when grpc-gcp is enabled
  • preserves full pool settings only when DCP is enabled
  • passes cleanup-only channel-pool options when DCP is disabled:
    • affinityKeyLifetime
    • cleanupInterval
    • dynamic scaling explicitly disabled

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cgati reacted with hooray emoji gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 🎉 1 reaction
  • 👀 1 reaction
@rahul2393
fix(spanner): fix grpc-gcp affinity cleanup and multiplexed channel u…
c94b6d4
…sage leaks
@rahul2393
rahul2393 requested review from a team as code owners April 9, 2026 07:47
@rahul2393
rahul2393 requested a review from olavloite April 9, 2026 07:49
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Apr 9, 2026
View reviewed changes

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

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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 implements explicit cleanup for gRPC-GCP channel affinity and introduces reference counting for shared channel usage in MultiplexedSessionDatabaseClient to ensure proper resource management. Key changes include the addition of clearTransactionAndChannelAffinity to the SpannerRpc interface and its implementations, allowing the system to unbind affinity keys when transactions or single-use operations complete. Additionally, GapicSpannerRpc was updated to propagate affinity cleanup settings even when dynamic channel pooling is disabled. Review feedback suggests adding a null check in getGrpcGcpChannelPoolOptions to prevent a potential NullPointerException and recommends consolidating the clearChannelHintAffinity implementation to avoid code duplication between KeyAwareChannel and GapicSpannerRpc.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...nner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java
Comment on lines +829 to +838
GcpChannelPoolOptions channelPoolOptions = options.getGcpChannelPoolOptions();
if (options.isDynamicChannelPoolEnabled()) {
return channelPoolOptions;
}

return GcpChannelPoolOptions.newBuilder()
.disableDynamicScaling()
.setAffinityKeyLifetime(channelPoolOptions.getAffinityKeyLifetime())
.setCleanupInterval(channelPoolOptions.getCleanupInterval())
.build();

@gemini-code-assist gemini-code-assist Bot Apr 9, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

medium

The method getGrpcGcpChannelPoolOptions assumes that options.getGcpChannelPoolOptions() returns a non-null value. If it returns null, a NullPointerException will occur when calling getAffinityKeyLifetime() or getCleanupInterval(). While SpannerOptions typically provides a default, adding a null check or ensuring a non-null value is safer for robustness.

  static GcpChannelPoolOptions getGrpcGcpChannelPoolOptions(SpannerOptions options) {
    GcpChannelPoolOptions channelPoolOptions = options.getGcpChannelPoolOptions();
    if (options.isDynamicChannelPoolEnabled()) {
      return channelPoolOptions;
    }

    GcpChannelPoolOptions.Builder builder = GcpChannelPoolOptions.newBuilder().disableDynamicScaling();
    if (channelPoolOptions != null) {
      builder.setAffinityKeyLifetime(channelPoolOptions.getAffinityKeyLifetime())
          .setCleanupInterval(channelPoolOptions.getCleanupInterval());
    }
    return builder.build();
  }

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@rahul2393 rahul2393 Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

gcpChannelPoolOptions is always initialized to either merged user options. The builder setter also rejects null, adding a defensive null branch would just hide invariant breaks.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...nner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/KeyAwareChannel.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@rahul2393
Merge branch 'main' into fix-12693-b-494614610
ce64c9e
# Conflicts:
#	java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpcTest.java
@rahul2393
rahul2393 force-pushed the fix-12693-b-494614610 branch from 3599670 to ce64c9e Compare April 9, 2026 07:57
rahul2393 added 5 commits April 9, 2026 15:00
@rahul2393
fix test
1b90d0d
@rahul2393
Merge branch 'main' into fix-12693-b-494614610
c8db2c1
@rahul2393
fix lint
2711774
@rahul2393
refactored clearChannelHintAffinity
bb03696
@rahul2393
fix graalVM test
0dc3d69
olavloite
olavloite reviewed Apr 9, 2026
View reviewed changes
Comment thread ...nner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...nner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...nner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/KeyAwareChannel.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...e-cloud-spanner/src/main/java/com/google/cloud/spanner/MultiplexedSessionDatabaseClient.java
synchronized (CHANNEL_USAGE) {
CHANNEL_USAGE.putIfAbsent(sessionClient.getSpanner(), new BitSet(numChannels));
this.channelUsage = CHANNEL_USAGE.get(sessionClient.getSpanner());
SharedChannelUsage sharedChannelUsage = CHANNEL_USAGE.get(this.spanner);

@olavloite olavloite Apr 9, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think that we should seriously consider removing this manual channel distribution logic from this class. It was introduced when using the Gax channel pool to prevent low-QPS from sticking to just one channel. My understanding is that grpc-gcp will do that automatically, as it falls back to a round-robin scheme when there is low load. That would significantly simplify this class without breaking the purpose of what this was intended to do.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@rahul2393 rahul2393 Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Customers still have an option to disable grpc-gcp and switch to GAX so cleanup task should be done later.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

olavloite reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/ChannelUsageTest.java
// read-only transactions tend to keep picking the same idle channel, so keep reads
// overlapping to verify distribution across the fixed-size pool.
mockSpanner.setExecuteStreamingSqlExecutionTime(
SimulatedExecutionTime.ofMinimumAndRandomTime(500, 0));

@olavloite olavloite Apr 9, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Would it be possible to just freeze the mock server and then wait for the server to contain N requests, and then unfreeze it, instead of adding 500ms execution time for each query? I think that would achieve the same, but with less execution speed. (There should be a util method in the mock server for 'waitForRequests' or something like that)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@rahul2393 rahul2393 Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I tried this approach, but the current mock server freeze() is global and blocks earlier RPCs like session creation/transaction setup before enough ExecuteStreamingSql requests are enqueued. That made the test deadlock/time out. I kept the per-query streaming delay for now because it is deterministic and keeps the overlap in the specific RPC path we want to exercise.

If we want to switch to freeze/wait/unfreeze, I think we first need a mock-server utility that can either freeze only ExecuteStreamingSql or wait for an exact request count without globally blocking unrelated RPCs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@olavloite olavloite Apr 9, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

You can work around that by making sure the CreateSession RPC has finished before you start the actual test. There are at least two ways to achieve that:

  1. Execute another query before freezing the mock server.
  2. Use SessionPoolOptions#setWaitForMinSessions(..) to make sure that the creation of the session becomes a blocking operation.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@rahul2393 rahul2393 Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I tried both workarounds:

  1. prewarming with an extra query before freeze()
  2. setting SessionPoolOptions#setWaitForMinSessionsDuration(...)

In this test path that still times out before the expected number of ExecuteStreamingSql requests reach the mock server, so the freeze/wait/unfreeze variant is still not stable here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rahul2393 added 2 commits April 9, 2026 16:36
@rahul2393
address comments
3288019
@rahul2393
Merge branch 'main' into fix-12693-b-494614610
d7e900f
@rahul2393
rahul2393 requested a review from olavloite April 9, 2026 11:08
@rahul2393
fix github check related to .gitignore
5c4891d
rahul2393
rahul2393 commented Apr 9, 2026
View reviewed changes
Comment thread java-spanner/.gitignore

@rahul2393 rahul2393 Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@olavloite This was added in the commit https://github.com/googleapis/google-cloud-java/pull/12715/changes#diff-abde1c3268c5f4417d5742c6c8a5541c6cf3e7d05bfc0be134e044891f9dd181 causing github check failure

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
olavloite
olavloite approved these changes Apr 9, 2026
View reviewed changes
@rahul2393
rahul2393 merged commit 55c9857 into main Apr 9, 2026
81 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rahul2393
rahul2393 deleted the fix-12693-b-494614610 branch April 9, 2026 16:01
@rahul2393 rahul2393 mentioned this pull request Apr 9, 2026
fix(spanner): don't set sticky AFFINITY_KEY for multiplexed sessions #12725
Closed
@glasser

glasser commented Apr 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

@rahul2393 FWIW, given that you're not doing any cleanup on removal from the map (ie, the goal of reference counting is cleaning up the map itself rather than triggering further cleanup), it seems like just using a WeakHashMap might be simpler than explicitly doing reference counting?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Apr 10, 2026
chore(main): release 1.84.0 #12762
Closed
chore(main): release 1.84.0 #12764
Merged
diegomarquezp added a commit that referenced this pull request Apr 10, 2026
@diegomarquezp
chore(main): release 1.84.0 (#12764)
6bef068
🤖 I have created a release *beep* *boop*
---


<details><summary>1.84.0</summary>

##
[1.84.0](v1.83.0...v1.84.0)
(2026-04-10)


### Features

* [aiplatform] [Memorystore for Redis Cluster] Add support for
([0bd7666](0bd7666))
* [aiplatform] Add container_spec to Reasoning Engine public protos
([0bd7666](0bd7666))
* [aiplatform] Add container_spec to Reasoning Engine public protos
([0bd7666](0bd7666))
* [aiplatform] Add container_spec to Reasoning Engine public protos
([3ba3854](3ba3854))
* [aiplatform] Add container_spec to Reasoning Engine public protos
([3ba3854](3ba3854))
* [aiplatform] Add custom session id field to create session v1
([e29dd99](e29dd99))
* [aiplatform] add evaluation metrics and autorater configuration to
([0bd7666](0bd7666))
* [aiplatform] RagMetadata and RagDataSchema concepts and Batch API
([e29dd99](e29dd99))
* [backupdr] Adding new workload specific fields for AlloyDB
([6344cb0](6344cb0))
* [ces] update public libraries for CES v1
([6344cb0](6344cb0))
* [ces] update public libraries for CES v1beta
([0bd7666](0bd7666))
* [ces] update public libraries for CES v1beta
([0bd7666](0bd7666))
* [chat] Addition of Section and SectionItem APIs
([0bd7666](0bd7666))
* [chat] Support app authentication with admin-consent scopes for
([0bd7666](0bd7666))
* [compute] Update Compute Engine v1 API to revision 20260227
([e29dd99](e29dd99))
* [databasecenter] A new value `SUB_RESOURCE_TYPE_READ_POOL` is
([6344cb0](6344cb0))
* [dataflow] Add Pausing/Yaml capabilities to public protos
([3ba3854](3ba3854))
* [dataflow] add sha256 field to Package proto
([0bd7666](0bd7666))
* [dataflow] add sha256 field to Package proto
([3ba3854](3ba3854))
* [dataform] add folders and teamFolders related changes to v1
([6344cb0](6344cb0))
* [datalineage] add configmanagement v1 module
([#12355](#12355))
([2def625](2def625))
* [datamanager] add INVALID_MERCHANT_ID to the ErrorReason enum for
([6344cb0](6344cb0))
* [dialogflow-cx] updated v3 dialogflow client libraries with
([6344cb0](6344cb0))
* [dialogflow] updated v2 dialogflow client libraries
([6344cb0](6344cb0))
* [dialogflow] updated v2beta1 dialogflow client libraries
([6344cb0](6344cb0))
* [dlp] added support for detecting key-value pairs in client
([e5e22ed](e5e22ed))
* [document-ai] Add a field for upgrading previous processor version
([e29dd99](e29dd99))
* [document-ai] Added a fields for image and table annotation output
([0bd7666](0bd7666))
* [geminidataanalytics] add `ParameterizedSecureViewParameters`
([e29dd99](e29dd99))
* [geocode] new module for geocode
([#12343](#12343))
([474efb1](474efb1))
* [grafeas] Added line_number to FileLocation
([e29dd99](e29dd99))
* [iap] add oauth fields for IapSettings
([e29dd99](e29dd99))
* [netapp] Add ONTAP passthrough APIs
([6344cb0](6344cb0))
* [network-security] Publish proto definitions for AuthzPolicy,
([6344cb0](6344cb0))
* [redis-cluster] [Memorystore for Redis Cluster] Add support for
([0bd7666](0bd7666))
* [redis-cluster] [Memorystore for Redis Cluster] Add support for
([3ba3854](3ba3854))
* [redis-cluster] [Memorystore for Redis Cluster] Add support for
([3ba3854](3ba3854))
* [securesourcemanager] Add CustomHostConfig to configure custom
([6344cb0](6344cb0))
* [securitycenter] Support Chokepoint and external exposure in
([e29dd99](e29dd99))
* [shopping-css] add product rating fields to CSS API v1. This is in
([e29dd99](e29dd99))
* [shopping-merchant-products] update products_common fields to
([e29dd99](e29dd99))
* [storage] populate the `persisted_data_checksums` field with
([e5e22ed](e5e22ed))
* [texttospeech] Support safety settings for Gemini voices and
([0bd7666](0bd7666))
* [texttospeech] Support safety settings for Gemini voices and
([0bd7666](0bd7666))
* [texttospeech] Support safety settings for Gemini voices and
([0bd7666](0bd7666))
* [texttospeech] Support safety settings for Gemini voices and
([0bd7666](0bd7666))
* [translate] A new field `mime_type` is added to message
([e5e22ed](e5e22ed))
* [valkey] [Memorystore for Valkey] Add support for Flexible CA
([0bd7666](0bd7666))
* [valkey] [Memorystore for Valkey] Add support for Flexible CA
([0bd7666](0bd7666))
* [valkey] [Memorystore for Valkey] Add support for Flexible CA
([3ba3854](3ba3854))
* [vectorsearch] Mark Vector Search v1 API as GA
([e29dd99](e29dd99))
* Add getProjectId getter for ComputeEngineCredentials
([#1833](#1833))
([0a7895a](0a7895a))
* add initial span tracing to http calls
([#12089](#12089))
([db50ccd](db50ccd))
* Add more attributes to golden signals metrics.
([#4135](#4135))
([bc82dcb](bc82dcb))
* Add v1 hypercomputecluster client library
([#12110](#12110))
([b3e042a](b3e042a))
* Add v1beta BigLake Hive client library
([#12118](#12118))
([73c0bd3](73c0bd3))
* Add v1beta networkconnectivity client library
([#12111](#12111))
([2ae693e](2ae693e))
* **bigguery:** add url.domain to span tracing
([#12208](#12208))
([6f79c2d](6f79c2d))
* **bigquery observability:** add version attribute to span tracing
([#12132](#12132))
([95c3eb8](95c3eb8))
* **bigquery:** add gcp.resource.destination.id for span tracing
([#12134](#12134))
([5f31ded](5f31ded))
* **bigquery:** add HTTP response attribute tracing
([#12109](#12109))
([f8a13e5](f8a13e5))
* **bigquery:** add opentelemetry W3C Trace Context to headers
([#12203](#12203))
([965761a](965761a))
* **bigquery:** add resend attribute to span tracing + integration tests
([#12313](#12313))
([167722d](167722d))
* **bigquery:** add url.full attribute to span tracing
([#12176](#12176))
([7fdf9ff](7fdf9ff))
* **bigquery:** add url.template to span tracing
([#12181](#12181))
([30f8afb](30f8afb))
* **bigquery:** added error attributes to span tracing
([#12115](#12115))
([863d23b](863d23b))
* **dataplex:** add DataProductService to manage data products and
([e29dd99](e29dd99))
* Extract resource name from unary requests for tracing
([#4159](#4159))
([23b16b7](23b16b7))
* **gapic-generator-java:** Extract resource name heuristicly
([#12207](#12207))
([f46480a](f46480a))
* **gax-httpjson:** add HttpJsonErrorParser utility
([#4137](#4137))
([6fe2446](6fe2446))
* **gax-httpjson:** populate ErrorDetails in HttpJsonApiExceptionFactory
([#4145](#4145))
([63f5be9](63f5be9))
* **gax:** Actionable Errors Logging API Tracer
([#12202](#12202))
([8d23279](8d23279))
* **gax:** Add error attributes to golden signal metrics.
([#12564](#12564))
([063dfe5](063dfe5))
* **gax:** add utility for logging actionable errors
([#4144](#4144))
([54fb8a5](54fb8a5))
* **gax:** Implement trace context extraction and injection with
integration test
([#12625](#12625))
([6675310](6675310))
* **observability:** Implement gcp.client.service attribute
([#12315](#12315))
([e99812f](e99812f))
* **observability:** implement url.domain attribute
([#12316](#12316))
([0a865bf](0a865bf))
* **sdk-platform-java:** Add CompositeTracer and CompositeTracerFactory.
([#12321](#12321))
([4b5e8af](4b5e8af))
* Switch Eef metrics to using built in open telemetry
([#4385](#4385))
([759bb22](759bb22))


### Bug Fixes

* Add error attributes to logging
([#12685](#12685))
([a9198ee](a9198ee))
* **bq jdbc:** allow & ignore unknown parameters
([#12352](#12352))
([2332ff1](2332ff1))
* **bq jdbc:** ensure getMoreResults() always moves the cursor
([#12353](#12353))
([ac1f0f4](ac1f0f4))
* **ci:** consolidate duplicate yaml keys in github actions workflows
([#12306](#12306))
([f644a19](f644a19))
* Clean up attributes for traces and metrics
([#12677](#12677))
([914f97f](914f97f))
* Decrease log level for directpath warnings outside GCE
([#4139](#4139))
([5151f34](5151f34))
* fix getLong on NUMERIC
([#2420](#2420))
([75ec5c2](75ec5c2))
* fix unclosed literal error for consecutive backslashes
([#4387](#4387))
([c00c633](c00c633))
* **gax-grpc:** add pick_first fallback to direct path service config
([#4143](#4143))
([4934ad8](4934ad8))
* **gax:** Implement lazy resource name evaluation in ApiTracerContext
([#12618](#12618))
([5e47749](5e47749))
* **gax:** reduce visibility of ApiTracerContext methods
([#12738](#12738))
([1760164](1760164))
* Handle null server address
([#12184](#12184))
([435dd8c](435dd8c))
* **hermetic-build:** do not add release please comments on vertexai
poms
([#12559](#12559))
([5e161a7](5e161a7))
* **hermetic-build:** prevent overwrite of Version.java in new
libraries'
([#12742](#12742))
([3bcca8e](3bcca8e))
* **java-spanner:** use the existing dependency versions
([#12746](#12746))
([8650bc6](8650bc6))
* **jdbc bq:** unshade BQ SDK in uber jar
([#12078](#12078))
([c4cabde](c4cabde))
* normalize indentation in owlbot yamls for new libraries
([#12759](#12759))
([a4997cb](a4997cb))
* **o11y:** composite tracer to process url changes
([#12754](#12754))
([70f75bd](70f75bd))
* **o11y:** create noop tracer when artifact ID is not set
([#12307](#12307))
([630d83d](630d83d))
* **o11y:** do not record error.type in successful runs
([#12620](#12620))
([28eebf0](28eebf0))
* **o11y:** remove `gpc.client.language` attribute
([#12621](#12621))
([40d2e43](40d2e43))
* **oauth2:** mask sensitive tokens in HTTP logs
([#1900](#1900))
([3e4ccb7](3e4ccb7))
* Populate method level attributes in metrics recording
([#4149](#4149))
([69aabf8](69aabf8))
* **release:** add Version.java as extra files in release-please
([#12617](#12617))
([f5101d9](f5101d9))
* remove Version.java from extra-files in release-please-config
([#12717](#12717))
([ab29069](ab29069))
* **spanner:** enforce READY-only location aware routing and add
endpoint lifecycle management
([ecb86fd](ecb86fd))
* **spanner:** enforce READY-only location aware routing and add
endpoint lifecycle management
([#12678](#12678))
([ca9edb9](ca9edb9))
* **spanner:** ensure executeQueryAsync is non-blocking
([#12715](#12715))
([b7e34d2](b7e34d2))
* **spanner:** fix grpc-gcp affinity cleanup and multiplexed channel
usage leaks
([#12726](#12726))
([55c9857](55c9857))
* **spanner:** honor built-in metrics opt-out for gRPC metrics exporter
([#12711](#12711))
([57baaea](57baaea))
* **spanner:** improve grpc-gcp affinity cleanup and location-aware
retries
([a157c2f](a157c2f))
* **spanner:** improve grpc-gcp affinity cleanup and location-aware
retries
([#12682](#12682))
([aca0428](aca0428))
* **spanner:** preserve all async cache updates
([#12740](#12740))
([b8bf432](b8bf432))
* StreamWriterTest to allow version in trace ID
([#12084](#12084))
([d463c15](d463c15))
* **telemetry:** fix incorrect span titles and missing otelAttributes
([#12080](#12080))
([f1c04a9](f1c04a9))
* update dependency com.google.cloud:sdk-platform-java-config to v3.58.0
([#12106](#12106))
([15fa933](15fa933))
* update Version.java and correct spanner version for 1.83.0 release
([#12712](#12712))
([c2147fc](c2147fc))
* use dynamic tracer name instead of hardcoded gax-java
([#12190](#12190))
([dea24db](dea24db))


### Performance Improvements

* **spanner:** reduce autoboxing when reading data
([#12741](#12741))
([6b83871](6b83871))


### Dependencies

* bump jackson version to 2.18.3
([#12351](#12351))
([50304c1](50304c1))
* update dependencies.txt for grpc-gcp to 1.9.2
([#4164](#4164))
([f336fdc](f336fdc))
* update dependency com.google.apis:google-api-services-storage to
v1-rev20260204-2.0.0
([#1750](#1750))
([340ecbe](340ecbe))
* update dependency com.google.apis:google-api-services-storage to
v1-rev20260204-2.0.0
([#3519](#3519))
([1531107](1531107))
* update dependency com.google.cloud:google-cloud-storage to v2.64.1
([#1752](#1752))
([8fb6935](8fb6935))
* update dependency com.google.cloud:sdk-platform-java-config to v3.58.0
([#1751](#1751))
([9cc3e22](9cc3e22))
* update dependency com.google.cloud:sdk-platform-java-config to v3.58.0
([#3523](#3523))
([26d772a](26d772a))
* update dependency node to v24
([#3509](#3509))
([f308477](f308477))
* update gcr.io/cloud-devrel-public-resources/storage-testbench docker
tag to v0.62.0
([#3526](#3526))
([ca29d5e](ca29d5e))
* update googleapis/sdk-platform-java action to v2.68.0
([#3522](#3522))
([abae1ac](abae1ac))


### Reverts

* ci: only run default list of graalvm tests if too many modules are
touched
([#12292](#12292))
([92bcdf4](92bcdf4))


### Documentation

* [dataplex] Change Dataplex library from `ALPHA` to `GA`
([6344cb0](6344cb0))
* [errorreporting] automated code change
([e29dd99](e29dd99))
* [run] An existing repeated string field custom_audiences is marked
([015d9a1](015d9a1))
* add warning about potential sensitive data in tracing
([#12701](#12701))
([684511a](684511a))
* **hermetic-build:** improve usability of development guide
([#12362](#12362))
([5944127](5944127))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Neenu1995 pushed a commit that referenced this pull request Apr 17, 2026
@diegomarquezp @Neenu1995
chore(main): release 1.84.0 (#12764)
3b153be
🤖 I have created a release *beep* *boop*
---


<details><summary>1.84.0</summary>

##
[1.84.0](v1.83.0...v1.84.0)
(2026-04-10)


### Features

* [aiplatform] [Memorystore for Redis Cluster] Add support for
([0bd7666](0bd7666))
* [aiplatform] Add container_spec to Reasoning Engine public protos
([0bd7666](0bd7666))
* [aiplatform] Add container_spec to Reasoning Engine public protos
([0bd7666](0bd7666))
* [aiplatform] Add container_spec to Reasoning Engine public protos
([3ba3854](3ba3854))
* [aiplatform] Add container_spec to Reasoning Engine public protos
([3ba3854](3ba3854))
* [aiplatform] Add custom session id field to create session v1
([e29dd99](e29dd99))
* [aiplatform] add evaluation metrics and autorater configuration to
([0bd7666](0bd7666))
* [aiplatform] RagMetadata and RagDataSchema concepts and Batch API
([e29dd99](e29dd99))
* [backupdr] Adding new workload specific fields for AlloyDB
([6344cb0](6344cb0))
* [ces] update public libraries for CES v1
([6344cb0](6344cb0))
* [ces] update public libraries for CES v1beta
([0bd7666](0bd7666))
* [ces] update public libraries for CES v1beta
([0bd7666](0bd7666))
* [chat] Addition of Section and SectionItem APIs
([0bd7666](0bd7666))
* [chat] Support app authentication with admin-consent scopes for
([0bd7666](0bd7666))
* [compute] Update Compute Engine v1 API to revision 20260227
([e29dd99](e29dd99))
* [databasecenter] A new value `SUB_RESOURCE_TYPE_READ_POOL` is
([6344cb0](6344cb0))
* [dataflow] Add Pausing/Yaml capabilities to public protos
([3ba3854](3ba3854))
* [dataflow] add sha256 field to Package proto
([0bd7666](0bd7666))
* [dataflow] add sha256 field to Package proto
([3ba3854](3ba3854))
* [dataform] add folders and teamFolders related changes to v1
([6344cb0](6344cb0))
* [datalineage] add configmanagement v1 module
([#12355](#12355))
([2def625](2def625))
* [datamanager] add INVALID_MERCHANT_ID to the ErrorReason enum for
([6344cb0](6344cb0))
* [dialogflow-cx] updated v3 dialogflow client libraries with
([6344cb0](6344cb0))
* [dialogflow] updated v2 dialogflow client libraries
([6344cb0](6344cb0))
* [dialogflow] updated v2beta1 dialogflow client libraries
([6344cb0](6344cb0))
* [dlp] added support for detecting key-value pairs in client
([e5e22ed](e5e22ed))
* [document-ai] Add a field for upgrading previous processor version
([e29dd99](e29dd99))
* [document-ai] Added a fields for image and table annotation output
([0bd7666](0bd7666))
* [geminidataanalytics] add `ParameterizedSecureViewParameters`
([e29dd99](e29dd99))
* [geocode] new module for geocode
([#12343](#12343))
([474efb1](474efb1))
* [grafeas] Added line_number to FileLocation
([e29dd99](e29dd99))
* [iap] add oauth fields for IapSettings
([e29dd99](e29dd99))
* [netapp] Add ONTAP passthrough APIs
([6344cb0](6344cb0))
* [network-security] Publish proto definitions for AuthzPolicy,
([6344cb0](6344cb0))
* [redis-cluster] [Memorystore for Redis Cluster] Add support for
([0bd7666](0bd7666))
* [redis-cluster] [Memorystore for Redis Cluster] Add support for
([3ba3854](3ba3854))
* [redis-cluster] [Memorystore for Redis Cluster] Add support for
([3ba3854](3ba3854))
* [securesourcemanager] Add CustomHostConfig to configure custom
([6344cb0](6344cb0))
* [securitycenter] Support Chokepoint and external exposure in
([e29dd99](e29dd99))
* [shopping-css] add product rating fields to CSS API v1. This is in
([e29dd99](e29dd99))
* [shopping-merchant-products] update products_common fields to
([e29dd99](e29dd99))
* [storage] populate the `persisted_data_checksums` field with
([e5e22ed](e5e22ed))
* [texttospeech] Support safety settings for Gemini voices and
([0bd7666](0bd7666))
* [texttospeech] Support safety settings for Gemini voices and
([0bd7666](0bd7666))
* [texttospeech] Support safety settings for Gemini voices and
([0bd7666](0bd7666))
* [texttospeech] Support safety settings for Gemini voices and
([0bd7666](0bd7666))
* [translate] A new field `mime_type` is added to message
([e5e22ed](e5e22ed))
* [valkey] [Memorystore for Valkey] Add support for Flexible CA
([0bd7666](0bd7666))
* [valkey] [Memorystore for Valkey] Add support for Flexible CA
([0bd7666](0bd7666))
* [valkey] [Memorystore for Valkey] Add support for Flexible CA
([3ba3854](3ba3854))
* [vectorsearch] Mark Vector Search v1 API as GA
([e29dd99](e29dd99))
* Add getProjectId getter for ComputeEngineCredentials
([#1833](#1833))
([0a7895a](0a7895a))
* add initial span tracing to http calls
([#12089](#12089))
([db50ccd](db50ccd))
* Add more attributes to golden signals metrics.
([#4135](#4135))
([bc82dcb](bc82dcb))
* Add v1 hypercomputecluster client library
([#12110](#12110))
([b3e042a](b3e042a))
* Add v1beta BigLake Hive client library
([#12118](#12118))
([73c0bd3](73c0bd3))
* Add v1beta networkconnectivity client library
([#12111](#12111))
([2ae693e](2ae693e))
* **bigguery:** add url.domain to span tracing
([#12208](#12208))
([6f79c2d](6f79c2d))
* **bigquery observability:** add version attribute to span tracing
([#12132](#12132))
([95c3eb8](95c3eb8))
* **bigquery:** add gcp.resource.destination.id for span tracing
([#12134](#12134))
([5f31ded](5f31ded))
* **bigquery:** add HTTP response attribute tracing
([#12109](#12109))
([f8a13e5](f8a13e5))
* **bigquery:** add opentelemetry W3C Trace Context to headers
([#12203](#12203))
([965761a](965761a))
* **bigquery:** add resend attribute to span tracing + integration tests
([#12313](#12313))
([167722d](167722d))
* **bigquery:** add url.full attribute to span tracing
([#12176](#12176))
([7fdf9ff](7fdf9ff))
* **bigquery:** add url.template to span tracing
([#12181](#12181))
([30f8afb](30f8afb))
* **bigquery:** added error attributes to span tracing
([#12115](#12115))
([863d23b](863d23b))
* **dataplex:** add DataProductService to manage data products and
([e29dd99](e29dd99))
* Extract resource name from unary requests for tracing
([#4159](#4159))
([23b16b7](23b16b7))
* **gapic-generator-java:** Extract resource name heuristicly
([#12207](#12207))
([f46480a](f46480a))
* **gax-httpjson:** add HttpJsonErrorParser utility
([#4137](#4137))
([6fe2446](6fe2446))
* **gax-httpjson:** populate ErrorDetails in HttpJsonApiExceptionFactory
([#4145](#4145))
([63f5be9](63f5be9))
* **gax:** Actionable Errors Logging API Tracer
([#12202](#12202))
([8d23279](8d23279))
* **gax:** Add error attributes to golden signal metrics.
([#12564](#12564))
([063dfe5](063dfe5))
* **gax:** add utility for logging actionable errors
([#4144](#4144))
([54fb8a5](54fb8a5))
* **gax:** Implement trace context extraction and injection with
integration test
([#12625](#12625))
([6675310](6675310))
* **observability:** Implement gcp.client.service attribute
([#12315](#12315))
([e99812f](e99812f))
* **observability:** implement url.domain attribute
([#12316](#12316))
([0a865bf](0a865bf))
* **sdk-platform-java:** Add CompositeTracer and CompositeTracerFactory.
([#12321](#12321))
([4b5e8af](4b5e8af))
* Switch Eef metrics to using built in open telemetry
([#4385](#4385))
([759bb22](759bb22))


### Bug Fixes

* Add error attributes to logging
([#12685](#12685))
([a9198ee](a9198ee))
* **bq jdbc:** allow & ignore unknown parameters
([#12352](#12352))
([2332ff1](2332ff1))
* **bq jdbc:** ensure getMoreResults() always moves the cursor
([#12353](#12353))
([ac1f0f4](ac1f0f4))
* **ci:** consolidate duplicate yaml keys in github actions workflows
([#12306](#12306))
([f644a19](f644a19))
* Clean up attributes for traces and metrics
([#12677](#12677))
([914f97f](914f97f))
* Decrease log level for directpath warnings outside GCE
([#4139](#4139))
([5151f34](5151f34))
* fix getLong on NUMERIC
([#2420](#2420))
([75ec5c2](75ec5c2))
* fix unclosed literal error for consecutive backslashes
([#4387](#4387))
([c00c633](c00c633))
* **gax-grpc:** add pick_first fallback to direct path service config
([#4143](#4143))
([4934ad8](4934ad8))
* **gax:** Implement lazy resource name evaluation in ApiTracerContext
([#12618](#12618))
([5e47749](5e47749))
* **gax:** reduce visibility of ApiTracerContext methods
([#12738](#12738))
([1760164](1760164))
* Handle null server address
([#12184](#12184))
([435dd8c](435dd8c))
* **hermetic-build:** do not add release please comments on vertexai
poms
([#12559](#12559))
([5e161a7](5e161a7))
* **hermetic-build:** prevent overwrite of Version.java in new
libraries'
([#12742](#12742))
([3bcca8e](3bcca8e))
* **java-spanner:** use the existing dependency versions
([#12746](#12746))
([8650bc6](8650bc6))
* **jdbc bq:** unshade BQ SDK in uber jar
([#12078](#12078))
([c4cabde](c4cabde))
* normalize indentation in owlbot yamls for new libraries
([#12759](#12759))
([a4997cb](a4997cb))
* **o11y:** composite tracer to process url changes
([#12754](#12754))
([70f75bd](70f75bd))
* **o11y:** create noop tracer when artifact ID is not set
([#12307](#12307))
([630d83d](630d83d))
* **o11y:** do not record error.type in successful runs
([#12620](#12620))
([28eebf0](28eebf0))
* **o11y:** remove `gpc.client.language` attribute
([#12621](#12621))
([40d2e43](40d2e43))
* **oauth2:** mask sensitive tokens in HTTP logs
([#1900](#1900))
([3e4ccb7](3e4ccb7))
* Populate method level attributes in metrics recording
([#4149](#4149))
([69aabf8](69aabf8))
* **release:** add Version.java as extra files in release-please
([#12617](#12617))
([f5101d9](f5101d9))
* remove Version.java from extra-files in release-please-config
([#12717](#12717))
([ab29069](ab29069))
* **spanner:** enforce READY-only location aware routing and add
endpoint lifecycle management
([ecb86fd](ecb86fd))
* **spanner:** enforce READY-only location aware routing and add
endpoint lifecycle management
([#12678](#12678))
([ca9edb9](ca9edb9))
* **spanner:** ensure executeQueryAsync is non-blocking
([#12715](#12715))
([b7e34d2](b7e34d2))
* **spanner:** fix grpc-gcp affinity cleanup and multiplexed channel
usage leaks
([#12726](#12726))
([55c9857](55c9857))
* **spanner:** honor built-in metrics opt-out for gRPC metrics exporter
([#12711](#12711))
([57baaea](57baaea))
* **spanner:** improve grpc-gcp affinity cleanup and location-aware
retries
([a157c2f](a157c2f))
* **spanner:** improve grpc-gcp affinity cleanup and location-aware
retries
([#12682](#12682))
([aca0428](aca0428))
* **spanner:** preserve all async cache updates
([#12740](#12740))
([b8bf432](b8bf432))
* StreamWriterTest to allow version in trace ID
([#12084](#12084))
([d463c15](d463c15))
* **telemetry:** fix incorrect span titles and missing otelAttributes
([#12080](#12080))
([f1c04a9](f1c04a9))
* update dependency com.google.cloud:sdk-platform-java-config to v3.58.0
([#12106](#12106))
([15fa933](15fa933))
* update Version.java and correct spanner version for 1.83.0 release
([#12712](#12712))
([c2147fc](c2147fc))
* use dynamic tracer name instead of hardcoded gax-java
([#12190](#12190))
([dea24db](dea24db))


### Performance Improvements

* **spanner:** reduce autoboxing when reading data
([#12741](#12741))
([6b83871](6b83871))


### Dependencies

* bump jackson version to 2.18.3
([#12351](#12351))
([50304c1](50304c1))
* update dependencies.txt for grpc-gcp to 1.9.2
([#4164](#4164))
([f336fdc](f336fdc))
* update dependency com.google.apis:google-api-services-storage to
v1-rev20260204-2.0.0
([#1750](#1750))
([340ecbe](340ecbe))
* update dependency com.google.apis:google-api-services-storage to
v1-rev20260204-2.0.0
([#3519](#3519))
([1531107](1531107))
* update dependency com.google.cloud:google-cloud-storage to v2.64.1
([#1752](#1752))
([8fb6935](8fb6935))
* update dependency com.google.cloud:sdk-platform-java-config to v3.58.0
([#1751](#1751))
([9cc3e22](9cc3e22))
* update dependency com.google.cloud:sdk-platform-java-config to v3.58.0
([#3523](#3523))
([26d772a](26d772a))
* update dependency node to v24
([#3509](#3509))
([f308477](f308477))
* update gcr.io/cloud-devrel-public-resources/storage-testbench docker
tag to v0.62.0
([#3526](#3526))
([ca29d5e](ca29d5e))
* update googleapis/sdk-platform-java action to v2.68.0
([#3522](#3522))
([abae1ac](abae1ac))


### Reverts

* ci: only run default list of graalvm tests if too many modules are
touched
([#12292](#12292))
([92bcdf4](92bcdf4))


### Documentation

* [dataplex] Change Dataplex library from `ALPHA` to `GA`
([6344cb0](6344cb0))
* [errorreporting] automated code change
([e29dd99](e29dd99))
* [run] An existing repeated string field custom_audiences is marked
([015d9a1](015d9a1))
* add warning about potential sensitive data in tracing
([#12701](#12701))
([684511a](684511a))
* **hermetic-build:** improve usability of development guide
([#12362](#12362))
([5944127](5944127))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
@akash329d akash329d mentioned this pull request May 6, 2026
fix(spanner): preserve call options when applying statement timeout #13017
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@olavloite olavloite olavloite approved these changes
+1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[spanner]: MultiplexedSessionDatabaseClient.CHANNEL_USAGE static HashMap leaks SpannerImpl instances on close

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@rahul2393 @glasser @olavloite
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.