-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Documentation about optimistic locking could be more precise #5126
Copy link
Copy link
Closed
Labels
type: documentationA documentation updateA documentation update
Milestone
Description
There is an IMPORTANT section
Optimistic Locking requires to set the WriteConcern to ACKNOWLEDGED. Otherwise OptimisticLockingFailureException can be silently swallowed.
When I read this sentence, with great effort I configured WriteConcern = ACKNOWLEDGED in my applications to enjoy Optimistic Locking.
I had to learn a bit more about Mongo to realize it was completely useless, because Mongo Servers default write concern is w:majority or w:1 what are different flavours of ACKNOWLEDGED
Maybe it is worth to mention about write concern. But this frame suggests is is very important to set write concern, when in reality is not true
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: documentationA documentation updateA documentation update