How to test and confirm botocore retry config for DynamoDB? #3934
-
For our DynamoDB implementation in a Lambda, I created a retry configuration as seen below. I pass different values to the configuration parameter Here is the code snippet for the dynamodb with retry config:
Here are the DEBUG logs from botocore for a table query:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay I finally figure out how to confirm max attempts. Logging the client meta like this prints the
It prints:
|
Beta Was this translation helpful? Give feedback.
Okay I finally figure out how to confirm max attempts. Logging the client meta like this prints the
total_max_attempts
which ismax_attempts + 1
:logger.debug(f"DynamoDB retry config: {db.meta.client.meta._client_config.retries}")
It prints:
[DEBUG] 2023-11-15T14:08:28.375Z DynamoDB retry config: {'mode': 'standard', 'total_max_attempts': 8}