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 年前3707 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则