Skip to content

In-memory control plane: a failed UpdateTable or TagResource leaves earlier changes applied #92

Closed

Description

@fctl-sh

Priority: medium. DynamoDB applies nothing of a request it refuses; the in-memory backend validates part of the request after applying the rest (backend/memory/admin.rs):

  • UpdateTable sets the billing mode before validating it, and creates and backfills global indexes before the stream check. Billing mode PROVISIONED (5, 5) together with re-enabling an enabled stream fails, but the table is now provisioned; a GSI creation together with the same stream error fails, but the index exists. billing_mode=PROVISIONED without throughput fails, leaves the table provisioned without capacity, and every later UpdateTable fails the same way, even deletion_protection_enabled=True.
  • TagResource adds the tags before checking the 50-tag limit: 45 tags plus 10 raise LimitExceededException, and ListTagsOfResource returns 55.

Fix: validate the whole request before changing the table.

Found in a review of the library for bugs (fctl session); the fixes that fit in its ten pull requests are #61 to #65, #67 to #70 and #72.

Activity

  1. added
    bug
    rust
    on Oct 30, 2026
  2. added a commit that references this issue on Oct 31, 2026
    39ed821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrust

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions