Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Unknown errors should not be retried #1387

@olavloite

Description

@olavloite

The NodeJS client library automatically retries transactions that return an Unknown error. This is because a transaction in some (very few) cases can return Transaction Outcome Unknown. This error is however not an indication that the transaction for certain did not succeed. As the error message indicates, the outcome is unknown and it is possible that the transaction succeeded. The application needs to take additional steps to check whether the transaction actually succeeded or not, and then if necessary manually retry the transaction.
The automatic retry of these errors should therefore be removed from the retry logic in the client library.

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/nodejs-spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions