Skip to content

reput item with DynamoDbVersionAttribute error? #2332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
user20161119 opened this issue Mar 13, 2021 · 1 comment
Closed

reput item with DynamoDbVersionAttribute error? #2332

user20161119 opened this issue Mar 13, 2021 · 1 comment
Labels
guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged.

Comments

@user20161119
Copy link

Describe the issue

when call

Steps to Reproduce

when put the same item with attribute annotated DynamoDbVersionAttribute multiple items,got error

software.amazon.awssdk.services.dynamodb.model.ConditionalCheckFailedException: The conditional request failed (Service: DynamoDb, Status Code: 400, Request ID: RGITBTES19PB8GMQVG1SNA5IOJVV4KQNSO5AEMVJF66Q9ASUAAJG, Extended Request ID: null)

so my question is when the item with attribute annotated DynamoDbVersionAttribute ,always need to check item exists before call put item?
thanks

Current Behavior

Your Environment

  • AWS Java SDK version used:software.amazon.awssdk:bom:2.16.1
  • JDK version used:jdk8
  • Operating System and version:windows 10
@user20161119 user20161119 added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Mar 13, 2021
@user20161119 user20161119 changed the title reput item with DynamoDbVersionAttribute error reput item with DynamoDbVersionAttribute error? Mar 13, 2021
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

aws-sdk-java-automation added a commit that referenced this issue Jan 18, 2023
…4908f570d

Pull request: release <- staging/75906e71-438e-4286-88ad-6604908f570d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant