-
Notifications
You must be signed in to change notification settings - Fork 192
OptimisticLockingFailureException is not thrown by spring-data-couchbase but according to the documentation it should be thrown #1314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
type: documentation
A documentation update
Comments
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. b9f23f3#diff-e82d83fa9ff4c9e5cef0a99873b87909a55f924adaecfdd2d40f880b9aa1fec6 |
5 tasks
mikereiche
added a commit
that referenced
this issue
Feb 2, 2022
mikereiche
added a commit
that referenced
this issue
Feb 2, 2022
mikereiche
added a commit
that referenced
this issue
Feb 4, 2022
mikereiche
added a commit
that referenced
this issue
Feb 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: