-
Notifications
You must be signed in to change notification settings - Fork 3.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
[aws-dynamodb] Fail to create a global table due to replication time-out #10249
[aws-dynamodb] Fail to create a global table due to replication time-out #10249
Comments
Hey @sungbokang , thanks for opening the issue. Do I understand correctly that your ask is basically to surface the Thanks, |
Closes #10249 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Closes aws#10249 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Hi,
I'm trying to add one more DynamoDB global table(replica) in us-west-2 region.
But it never succeeded in creating the replica.
replica-provider
currently uses a default totalTimeout(30 minutes) value ofCustomResourceProvider
so that it always fails if expected replication time is more than 30 minutes: https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/aws-dynamodb/lib/replica-provider.ts#L74-L77Reproduction Steps
First, my DynamoDB constructor is like this, which tells that it already had us-east-1 and eu-west-1 regions.
And then create a bunch of data enough to make a replication process takes more than 30 minutes. (For our case, we have 20Gb data in our table approximately)
After that, append us-west-2 region in order to add the global table dynamically.
What did you expect to happen?
The global table in us-west-2 region should have been created well.
What actually happened?
While creating a global table, CloudFormation threw
CREATE_FAILED
with aFailed to create resource. Operation timed out
message. As trying to create the global table several times, this happens in 33 minutes exactly after the time whenCustom::DynamoDBReplica
becomes ``CREATE_IN_PROGRESS` status.Environment
Other
totalTimeout
value intoreplica-provider
instead of sticking to the default 30 minutes value.OnEventHandler
reverts before deleting the global table. So deleting the global table fails with aDELETE_FAILED
-Failed to delete resource
because of lack of permission. Regarding this, I created one another issue: [aws-dynamodb] Fail to rollback if global table creation is failed #10256This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: