optimistic locking very frequently in grails 2.5.4 with mongo db

18 views
Skip to first unread message

Rahul Ranjan

unread,
Jan 31, 2018, 9:31:20 PM1/31/18
to Grails Dev Discuss

controller -> service
we are manipulating the domain object in a service . For single user it is working fine.
for multiple user, it throws optimistic locking exception. Even after synchronizing the access of shared object between threads,getting Optimistic Locking very frequently.

what is way to handle this exception.

Graeme Rocher

unread,
Feb 3, 2018, 5:50:18 AM2/3/18
to grails-de...@googlegroups.com
See discussion at https://github.com/grails/gorm-mongodb/issues/64
> --
> You received this message because you are subscribed to the Google Groups
> "Grails Dev Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grails-dev-disc...@googlegroups.com.
> To post to this group, send email to grails-de...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grails-dev-discuss/a0805a50-9ec8-480b-9b10-3f1f998120ed%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Graeme Rocher
Reply all
Reply to author
Forward
0 new messages