Closed user-12366 closed 1 year ago
@debora-ito Hello Debora, could you help get this issue triaged? It is blocking our use of enhanced dynamodb client. Gist: The ddb api calls are happening successfully but the ddb items aren't being stored or retrieved from the table successfully. I have shared the aws sdk request ids as well for further investigation.
@user-12366 apologies for the delay in response.
Can you enable the verbose wirelogs and check if the PutItem operation is sending the right attributes?
If the low-level DynamoDB APIs are being called successfully, my guess is that some attributes are not matching the expected values. The wirelogs would confirm this.
If you choose to share the wirelogs here, please make sure to redact any sensitive information (like access keys).
For instructions on how to enable wirelogs see https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/logging-slf4j.html#sdk-java-logging-verbose.
It looks like this issue has not been active for more than five days. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it.
Describe the bug
PutItem, GetItem, etc. apis are not storing and retrieving the object into the dynamodb table.
Our service exposes a set of swagger apis that allow for storing and retrieving objects into the dynamodb table. We are using enhanced dynamodb client to make PutItem, GetItem, etc. calls to the table.
When call these swagger apis to store an object, it returns with successfully api response; however, the dynamodb wrapper/repository class that uses the enhanced client to store the value doesn't store it, neither does it throw any error.
Expected Behavior
Expected behavior is when the swagger api is called and then the repository class methods are called, then the object of type ValidationExemptions will be stored in the dynamodb table.
Current Behavior
When calling the swagger apis, the repository class methods are called but it doesn't save the object into the table.
Unit tests using the DynamodbLocal dependency works fine.
Reproduction Steps
Client creation code:
DDB bean class:
Repository class making CRUD calls.
Possible Solution
No response
Additional Information/Context
Log statements with aws sdk java request ids.
AWS Java SDK version used
JDK version used
11
Operating System and version
Kubernetes cluster