ResourceInUseException
aws
resource_error
ai_generated
partial
调用 DescribeTable 操作时出错(ResourceInUseException):表处于归档状态,无法描述
An error occurred (ResourceInUseException) when calling the DescribeTable operation: Table is in ARCHIVING state and cannot be described
ID: aws/dynamodb-table-in-archiving-state
85%修复率
80%置信度
1证据数
2024-01-10首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| dynamodb-2012-08-10 | active | — | — | — |
| aws-cli/2.17.0 | active | — | — | — |
根因分析
DynamoDB 表正在被归档(例如,通过备份或删除过程),像 DescribeTable 这样的操作被阻止,直到归档完成。
English
The DynamoDB table is being archived (e.g., via a backup or deletion process), and operations like DescribeTable are blocked until archiving completes.
官方文档
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/BackupInProgress.html解决方案
-
等待归档过程完成。使用 `aws dynamodb wait table-exists --table-name mytable` 监控表状态,或检查 CloudWatch 事件以了解备份完成情况。
-
如果归档时间过长,请联系 AWS Support 以加速或取消操作,因为可能由于表过大或节流而卡住。
-
在归档开始前使用 DynamoDB Streams 捕获更改;归档完成后,重新创建表并重放更改。
无效尝试
常见但无效的做法:
-
Force delete the table using `aws dynamodb delete-table`
85% 失败
If the table is in ARCHIVING state, it is already being deleted or backed up; delete-table will fail with the same error.
-
Restore the table from a backup while it is archiving
90% 失败
Restore operations require the table to be in ACTIVE state; archiving blocks both reads and writes.