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
Looks like they don't match. The code has always translated CasMismatch to DataIntegrityViolation. Before that it didn't translate it. I suspect it's better to change the documentation than to break any code that handles the exception.
Hi
OptimisticLockingFailureException
is not thrown by spring-data-couchbase but according to the documentation it should be thrownInstead it is throwing
DataIntegrityViolationException
caused byCasMismatchException
.spring-data-couchbase/src/main/java/org/springframework/data/couchbase/core/CouchbaseExceptionTranslator.java
Lines 69 to 73 in 7e45fa2
Is there an error in the documentation?
Related issue: #944 #934
The text was updated successfully, but these errors were encountered: