You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you're sharing one DynamoDBClient between multiple DynamoDBDocumentClients, the marshalling options from the most recently created document client overwrites all the other document clients' marshalling options.
Regression Issue
Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/lib-dynamodb@3.664.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
DynamoDBDocumentClient is sharing and mutating the underlying DynamoDBClient's config object when it should be keeping a private copy of the translate config.
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered:
kuhe
added
p2
This is a standard priority issue
queued
This issues is on the AWS team's backlog
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 4, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Checkboxes for prior research
Describe the bug
When you're sharing one DynamoDBClient between multiple DynamoDBDocumentClients, the marshalling options from the most recently created document client overwrites all the other document clients' marshalling options.
Regression Issue
SDK version number
@aws-sdk/lib-dynamodb@3.664.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
Node 20.13.1
Reproduction Steps
Observed Behavior
The first document client's marshallOptions were overwritten by the second's marshallOptions.
Expected Behavior
Each document client's options should be distinct and should not affect each other even if they're sharing a DynamoDBClient.
Possible Solution
aws-sdk-js-v3/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts
Lines 144 to 145 in de4dc49
DynamoDBDocumentClient is sharing and mutating the underlying DynamoDBClient's config object when it should be keeping a private copy of the translate config.
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: