The RestoreTableFromBackup response for a PROVISIONED table has no BillingModeSummary and no NumberOfDecreasesToday, where DynamoDB sends both

Đang mở Phù hợp với người mới
#1,200 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
mongodb, postgresql, rust, sqlite

Hướng nghiên cứu

Đọc crates/engine/src/backup.rs, tập trung vào restore_response và chú thích tài liệu của hàm. Kiểm tra cách hàm tạo phản hồi từ mô tả của backend cho một đích PROVISIONED; issue đề xuất đặt BillingModeSummary và NumberOfDecreasesToday thành 0. Hoàn tất khi phản hồi khôi phục bao gồm cả hai thành viên và chú thích khớp với hành vi quan sát được; issue không nêu bài kiểm tra nào cần chạy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

DynamoDB's RestoreTableFromBackup response for a backup of a PROVISIONED table carries "BillingModeSummary": {"BillingMode": "PROVISIONED"}, and "NumberOfDecreasesToday": 0 in ProvisionedThroughput. ExtendDB's response has neither member, on SQLite, PostgreSQL, MongoDB and Cassandra. Apart from these two, the TableDescription of the response has the same members on both sides.

Measured in us-east-1 on 20 Nov 2026, twice, with the same answers both times. Each run created a PROVISIONED 5/7 table keyed on pk (S), raised it to 9/11, waited for ACTIVE, made a backup and restored it to a new table.

TableDescription member of the RestoreTableFromBackup response DynamoDB ExtendDB
BillingModeSummary {"BillingMode": "PROVISIONED"} absent
ProvisionedThroughput {"NumberOfDecreasesToday": 0, "ReadCapacityUnits": 9, "WriteCapacityUnits": 11} {"ReadCapacityUnits": 9, "WriteCapacityUnits": 11}

The DescribeTable of the restored table once ACTIVE carries no BillingModeSummary on DynamoDB either, so only the response differs there. Its NumberOfDecreasesToday is a separate difference, in #1197.

ExtendDB ran on the fix for #1035, stacked on #1093's head 8ec2603ea, on all four backends, and on #1093's head on SQLite. All of them gave the answer above.

restore_response in crates/engine/src/backup.rs builds the response from the backend's description. Its doc comment says that DynamoDB omits ProvisionedThroughput.NumberOfDecreasesToday from this response. On 20 Nov DynamoDB sent it in both runs. The backends describe a PROVISIONED table with no BillingModeSummary, and the function keeps what the backend gives.

Proposed change: in restore_response, set BillingModeSummary with BillingMode PROVISIONED and send NumberOfDecreasesToday 0 for a PROVISIONED target, and correct the doc comment. A restore to a PAY_PER_REQUEST target was not measured in this run.

Ngôn ngữ chính
Rust
Star
517
Fork
60
Merge trung bình
5 ngày 1 giờ
Pull request đã merge (30 ngày)
132

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ExtendDB/extenddb

Tất cả issue của ExtendDB/extenddb

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.