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

Conversation

@zhumin8
Copy link
Contributor

@zhumin8 zhumin8 commented Aug 4, 2025

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.

BEGIN_COMMIT_OVERRIDE
fix(spanner): check for empty before delete (#4047)
END_COMMIT_OVERRIDE
Fixes #4046

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 4, 2025

@zhumin8 zhumin8 marked this pull request as ready for review August 19, 2025 13:34
@zhumin8 zhumin8 requested a review from a team as a code owner August 19, 2025 13:34
@zhumin8 zhumin8 merged commit b50c092 into main Aug 19, 2025
128 of 132 checks passed
@zhumin8 zhumin8 deleted the fix-spanner-test-fail branch August 19, 2025 13:38
@zhumin8 zhumin8 changed the title fix: check for empty before delete fix(spanner): check for empty before delete Aug 19, 2025
zhumin8 added a commit that referenced this pull request Aug 19, 2025
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 added a commit that referenced this pull request Aug 19, 2025
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 added a commit that referenced this pull request Aug 19, 2025
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 added a commit that referenced this pull request 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](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 added a commit that referenced this pull request 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](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.
zhumin8 added a commit that referenced this pull request 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](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 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>
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>
zhumin8 pushed a commit that referenced this pull request Aug 20, 2025
🤖 I have created a release *beep* *boop*
---


##
[7.2.0](v7.1.0...v7.2.0)
(2025-08-19)


### Features

* Update root reference docs with latest version
([#4081](#4081))
([20c45f9](20c45f9))


### Bug Fixes

* **deps:** update dependency com.google.api:gapic-generator-java-bom to
v2.61.0
([#4071](#4071))
([f96a628](f96a628))
* **deps:** update dependency com.google.cloud:libraries-bom to v26.66.0
([#4070](#4070))
([4aa58cd](4aa58cd))
* **doc:** fix secret manager section header levels
([#4060](#4060))
([82df717](82df717)),
closes
[#4072](#4072)
* **docs:** add missing parameter.adoc to documentation index
([#4069](#4069))
([23dc9ae](23dc9ae))
* remove unnecessary backslashes
([#4083](#4083))
([0cfe9d9](0cfe9d9))
* **spanner:** check for empty before delete
([#4047](#4047))
([b50c092](b50c092))


### Documentation

* Add 80% test coverage requirement for new code
([#4062](#4062))
([092a1dd](092a1dd))
* update reference documentation links to the latest
([#4049](#4049))
([4e66678](4e66678))

---
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>
zhumin8 pushed a commit that referenced this pull request Aug 27, 2025
🤖 I have created a release *beep* *boop*
---


##
[5.13.2](v5.13.1...v5.13.2)
(2025-08-20)


### Bug Fixes

* **spanner:** check for empty before delete
([#4047](#4047))
([#4078](#4078))
([319cf41](319cf41))


### Dependencies

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

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

[test]: spanner it test failure

3 participants