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

已提問 4 年前檢視次數 3708 次
5 個答案
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.

已回答 4 年前
0

Ok. Can i help you?

已回答 4 年前
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.

已回答 4 年前
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.

已回答 4 年前
0

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

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南