spanner: (Doc) Missing error handling after BufferWrite #3802
Labels
api: spanner
Issues related to the Spanner API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Is your feature request related to a problem? Please describe.
The below example code in the doc doesn't catch and handle the error from
txn.BufferWrite
. I guess it disables the retry to be triggered by this error.google-cloud-go/spanner/doc.go
Line 303 in f321666
Describe the solution you'd like
Just make it catch and return the error.
The text was updated successfully, but these errors were encountered: