-
Notifications
You must be signed in to change notification settings - Fork 964
Description
Describe the bug
DynamoDbEnhancedClient default extensions are being overridden/replaced when new extensions are being added
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Default extensions shouldn't be overridden/replaced by the addition of non-default extensions
Current Behavior
Default extensions are being overridden/replaced by the addition of non-default extensions
Reproduction Steps
Create a DyanamoDbEnhancedClient bean as follows.
@Bean public DynamoDbEnhancedClient dynamoDbEnhancedClient(DynamoDbClient dynamoDbClient) { return DynamoDbEnhancedClient.builder() .dynamoDbClient(dynamoDbClient) .extensions(AutoGeneratedTimestampRecordExtension.create(), AutoGeneratedUuidExtension.create()) .build(); }
create a @DynamoDbBean which is versioned(@DynamoDbVersionAttribute) class and create a equivalent table for it in dynamoDb environment. try to create a record using putItem/UpdateItem methods of dynamoDbTable class.
You will notice that version number not being created/updated.
Possible Solution
Additional Information/Context
No response
AWS Java SDK version used
2.29.1
JDK version used
21
Operating System and version
windows 11 23H2