这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@zhumin8
Copy link
Contributor

@zhumin8 zhumin8 commented Aug 19, 2025

Backport fix.

spanner IT fails for deleteAllById_doesNothingOnEmptyIds test with error from Spanner: INVALID_ARGUMENT: Failed to initialize transaction due to invalid mutation key.

Trigger of this behavior change:
spanner activated multiplexed sessions by default in googleapis/java-spanner#3996, which triggers this error. When issuing a write() with a Mutation that has an empty KeySet produces an exception in Multiplexed clients (see pr), but does a no-op in non-multiplexed ones. Unlike Regular session, multiplex session needs a valid mutation to generate a precommit token.

Fixes #4046

spanner IT fails for `deleteAllById_doesNothingOnEmptyIds` test with error from Spanner:
`INVALID_ARGUMENT: Failed to initialize transaction due to invalid mutation key.`

**Trigger of this behavior change:**
spanner activated multiplexed sessions by default in [googleapis/java-spanner#3996](googleapis/java-spanner#3996), which triggers this error.
When issuing a write() with a Mutation that has an empty KeySet produces an exception in Multiplexed clients (see [pr](googleapis/java-spanner#4023)), but does a no-op in non-multiplexed ones. Unlike Regular session, multiplex session needs a valid mutation to generate a precommit token.

Fixes #4046
@zhumin8 zhumin8 merged commit e0a2716 into 3.x Aug 19, 2025
26 of 27 checks passed
@zhumin8 zhumin8 deleted the backport-4047-3.x branch August 19, 2025 20:02
zhumin8 pushed a commit that referenced this pull request Aug 19, 2025
🤖 I have created a release *beep* *boop*
---


##
[3.9.8](v3.9.7...v3.9.8)
(2025-08-19)


### Bug Fixes

* **spanner:** check for empty before delete
([#4047](#4047))
([#4079](#4079))
([e0a2716](e0a2716)),
closes
[#4046](#4046)


### Dependencies

* bump com.google.cloud:libraries-bom from 26.65.0 to 26.66.0
([#4066](#4066))
([e15f17a](e15f17a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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.

3 participants