mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 01:43:02 -05:00
* fix(dynamodb): reject UpdateTable GSI changes AWS refuses
UpdateTable accepted more than one GSI create or delete in one request,
and a GSI create or delete together with a BillingMode or throughput
change. Real DynamoDB answers the first with LimitExceededException
("Only 1 online index can be created or deleted simultaneously per
table") and the second with ValidationException ("You cannot create or
delete index while updating table IOPS"). Both checks run before the
table changes.
updateTableDeleteAllGsis deleted two GSIs in one request, which AWS
rejects, so it now deletes them in two requests; its end state is the
same.
Fixes #4572
* fix(dynamodb): share the online index limit across GSI and vector index changes
The limit now carries the AWS Subscriber limit prefix, counts GSI and vector index operations together, and an index change is also refused alongside table OnDemandThroughput.
* refactor(dynamodb): keep one copy of the UpdateTable index-count check
The service already refuses more than one online index operation before anything changes, so the handler's duplicate check is dropped. Integration tests for this change now use the deleteTable helper and clean up their tables.