guregu / dynamo

expressive DynamoDB library for Go
Other
1.3k stars 179 forks source link

Automatically retrying transactions #203

Closed guregu closed 1 year ago

guregu commented 1 year ago

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html#API_TransactWriteItems_Errors Currently the automatic retry behavior doesn't work for TransactionCanceledException, which originally was because it was missing from the Go SDK. I think it should retry the same was as it does for throttling errors. Not all TransactionCanceledExceptions are retryable which makes this a bit hairy.

I think it's these that need retrying: