transact_write_items
doesn't return CancellationReasons
when ReturnValuesOnConditionCheckFailure
is set to 'ALL_OLD'
#2657
Labels
closed-for-staleness
dynamodb
feature-request
This issue requests a feature.
p3
This is a minor priority issue
Describe the bug
When calling transact_write_items with any TransactItems that specify ReturnValuesOnConditionCheckFailure, and any condition check of the transaction fails, there's no values returned in the ClientError exception that is raised.
Steps to reproduce
ReturnValuesOnConditionCheckFailure
toALL_OLD
.ALL_OLD
on condition check failures.Expected behavior
DynamoDB client raises
TransactionCanceledException
and theCancellationReasons
are provided as a part of the error object.Debug logs
Full stack trace by adding
boto3.set_stream_logger('')
to your code.(redacting some of this)
Found #1990 which originally reported this.
The Java SDK seems to have implemented returning
CancellationReasons
.Tagging @bradschm
The text was updated successfully, but these errors were encountered: