-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamodb batch writer periodically failing #483
Comments
I've upgraded to the latest version:
And I'm still seeing the following errors:
|
Thanks for the report! We'll take a look. |
I believe I see the issue. Working on a fix. |
In the case where no items are processed and we received all the items back as unprocessed key, the next put_item request will have flush_amount + 1, which will trigger an error. To fix this, the input_buffer is always sliced to flush_amount before the batch_write_item() call. Fixes boto#483.
I don't know if that might be included in the fix but I faced this issue when working a heavily loaded environment. In addition sending more than 25 operations in the batch I also noticed that at some point DynamoDB was refusing the batch with While this might be the responsibility of the caller during Does it makes sense to catch the |
The I think we may need to allow the user to override the max number of retry attempts so users can set it to a higher number as needed. |
I'm using the following logic to pull content from a list and insert it into DynamoDB
It appears to periodically append more than the 25 item limit to the batch and thus fails with the following error:
Package version:
The text was updated successfully, but these errors were encountered: