BatchWriteItem: the refusal of 26 requests for one table quotes each request as `WriteRequest`, where DynamoDB names the member path or quotes every field

Abierto Apto para principiantes
#1,039 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Lee crates/engine/src/request_limits.rs, especialmente write_requests_repr y per_table_count_error. Comprueba primero cómo utilizan ese error check_batch_counts y check_request_item_counts del servidor. Cambia la respuesta cuando se supera el límite al formato con la ruta del elemento medido y conserva el texto para las listas vacías; el trabajo estará terminado cuando la respuesta coincida con el formato propuesto.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

BatchWriteItem refuses a table with more than 25 requests. ExtendDB's message quotes the request list with each request as the bare word WriteRequest. Amazon DynamoDB answers in one of three forms, and none of them prints a request that way. Closed issue #108 listed this request among its rows, and ExtendDB still answers it with the bare type names.

Measured in us-east-1 on 2026-11-14 and 2026-11-16. BatchWriteItem on a table keyed on pk (S), with 25 PutRequests of {"pk": {"S": "em-bw-k<i>"}} and a 26th whose item is {"pk": {"S": "em-bw-nested"}, "doc": {"M": {"inner": {"L": [{"S": "a"}, {"NULL": true}]}}}}. DynamoDB answers ValidationException with one of these messages:

Form DynamoDB message
Member path 1 validation error detected: Value at 'RequestItems.<table>.member' failed to satisfy constraint: Member must have length less than or equal to 25
Quoted map 1 validation error detected: Value '{<table>=[WriteRequest(putRequest=PutRequest(item={pk=AttributeValue(s=em-bw-k0, n=null, b=null, iNT=null, dECIMAL=null, dOUBLE=null, sS=null, nS=null, bS=null, iNTSET=null, dECIMALSET=null, dOUBLESET=null, m=null, l=null, nULL=null, bOOL=null)}, workloadProfileName=null), deleteRequest=null), ...]}' at 'requestItems' failed to satisfy constraint: Map value must satisfy constraint: [Member must have length less than or equal to 25, Member must have length greater than or equal to 1]
Quoted map with object hashes the quoted map with each value printed as com.amazonaws.dynamodb.v20120810.AttributeValue@<hex>

On 2026-11-14 both sends at 16:37 UTC answered the member path form, and both sends at 16:53 UTC answered the quoted map. The quoted map prints all 26 requests, and it prints the nested value of the 26th level by level, each level in its own AttributeValue(...) frame. On 2026-11-16, 5 of 20 sends answered with object hashes.

ExtendDB at origin/main 95425f5e8 answers 1 validation error detected: Value '{<table>=[WriteRequest, WriteRequest, ..., WriteRequest]}' at 'requestItems' failed to satisfy constraint: Map value must satisfy constraint: [Member must have length less than or equal to 25, Member must have length greater than or equal to 1], with WriteRequest 26 times. It gives this answer on SQLite, SQLite in dev mode, PostgreSQL, MongoDB and Cassandra.

per_table_count_error (crates/engine/src/request_limits.rs, line 138) builds the message at lines 149 to 154 from write_requests_repr (line 62), which returns vec!["WriteRequest"; count].join(", "). The comment on write_requests_repr (lines 60 and 61) says that the service prints each request as its type name. The measurements above do not show that form. check_batch_counts (line 78) calls per_table_count_error at line 116. The server runs the same check before authorization (check_request_item_counts, line 170).

Proposed change: for a table with more than 25 requests, answer the member path form. It is one of DynamoDB's measured answers, and it carries no copy of the requests. The empty request list keeps its present text.

Lenguaje dominante
Rust
Estrellas
517
Forks
60
Merge medio
5 d 14 h
PR fusionados (30 d)
124

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ExtendDB/extenddb

Todos los issues de ExtendDB/extenddb

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.