Skip to content

The semantics of SimpleCouchbaseRepository.save have changed between 3.x and 4.x #1277

@aaronjwhiteside

Description

@aaronjwhiteside

Saving some entity with the same document id/key used to raise a DuplicateKeyException, now it just replaces the document silently.

I couldn't find anything about this change in the migration guide, so my guess is it's unintentional.

https://docs.spring.io/spring-data/couchbase/docs/current/reference/html/#couchbase.migrating

https://github.com/spring-projects/spring-data-couchbase/blob/main/src/main/java/org/springframework/data/couchbase/repository/support/SimpleCouchbaseRepository.java#L70-L82

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: regressionA regression from a previous release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions