Skip to content

OptimisticLockingFailureException is not thrown by spring-data-couchbase but according to the documentation it should be thrown #1314

Closed
@jorgerod

Description

@jorgerod

Hi

OptimisticLockingFailureException is not thrown by spring-data-couchbase but according to the documentation it should be thrown

image

Instead it is throwing DataIntegrityViolationException caused by CasMismatchException.

if (ex instanceof CasMismatchException || ex instanceof ConcurrentModificationException
|| ex instanceof ReplicaNotConfiguredException || ex instanceof DurabilityLevelNotAvailableException
|| ex instanceof DurabilityImpossibleException || ex instanceof DurabilityAmbiguousException) {
return new DataIntegrityViolationException(ex.getMessage(), ex);
}

Is there an error in the documentation?

Related issue: #944 #934

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions