Member must have length less than or equal to 10

0

Hi all!

I have a problem then i try to write more than 10 operations in transaction:
"Member must have length less than or equal to 10"

JDK 11.0.6

<dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-dynamodb</artifactId> <version>1.11.714</version> </dependency>

NoSQL Workbench for Amazon DynamoDB (Preview)
Version 0.4.0

var transactWriteItemsRequest = new TransactWriteItemsRequest()
   .withTransactItems(actions)
   .withReturnConsumedCapacity(ReturnConsumedCapacity.TOTAL);
try {
   res = client.transactWriteItems(transactWriteItemsRequest);

In the official documentation, the limit is 25 operations:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-apis.html#transaction-apis-txwriteitems

Is it a bug or am I doing something wrong?

Edited by: sergeyNayaTech on Feb 4, 2020 12:31 PM

preguntada hace 4 años3708 visualizaciones
5 Respuestas
0

Hi sergey123456,

You are correct, you can include up to 25 items per transaction. Let me check with the Workbench team on the behavior you are observing.

respondido hace 4 años
0

Ok. Can i help you?

respondido hace 4 años
0

Hi,
Thanks for trying out NoSQL Workbench and providing valuable feedback. We tried reproducing the issue on our end and were not able to. Could you please share screenshots or provide detailed steps to reproduce the issue so that we can get to the bottom of this and fix this if it is indeed an issue?

You can always send us an email to dynamodb-workbench-feedback@amazon.com if that is more convenient.

Thanks.

respondido hace 4 años
0

Hello there.

In my case,
This problem occurred when connecting to dynamodb-local on Docker Hub.
https://hub.docker.com/r/amazon/dynamodb-local/

Amazon DynamoDB limit is correctly set to 25.
But dynamodb-local limit is set to 10.

respondido hace 4 años
0

Thanks for the reply. That issue is something we are going to fix very soon. Stay tuned for updates.

respondido hace 4 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas