Skip to content

DynamoDbEnhancedClient default extensions are being overridden/replaced when new extensions are being added #5728

@Boyapati36

Description

@Boyapati36

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

#5727

Additional Information/Context

No response

AWS Java SDK version used

2.29.1

JDK version used

21

Operating System and version

windows 11 23H2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions