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

Conversation

@zhumin8
Copy link
Contributor

@zhumin8 zhumin8 commented Aug 19, 2025

backport fix from #4047

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 requested a review from a team as a code owner August 19, 2025 19:04
@sonarqubecloud
Copy link

@zhumin8 zhumin8 merged commit cb1f687 into 6.x Aug 19, 2025
110 of 111 checks passed
@zhumin8 zhumin8 deleted the backport-4047-6.x branch August 19, 2025 19:54
zhumin8 pushed a commit that referenced this pull request Aug 20, 2025
🤖 I have created a release *beep* *boop*
---


##
[6.3.2](v6.3.1...v6.3.2)
(2025-08-19)


### Bug Fixes

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


### Dependencies

* bump com.google.cloud:libraries-bom from 26.65.0 to 26.66.0
([#4067](#4067))
([970c11c](970c11c))

---
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.

4 participants