optimistic locking very frequently in grails 2.5.4 with mongo db

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

optimistic locking very frequently in grails 2.5.4 with mongo db

Rahul Ranjan

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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: optimistic locking very frequently in grails 2.5.4 with mongo db

Graeme Rocher-2
See discussion at https://github.com/grails/gorm-mongodb/issues/64

On Thu, Feb 1, 2018 at 3:31 AM, Rahul Ranjan
<[hidden email]> wrote:

> 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.
>
> --
> 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 [hidden email].
> To post to this group, send email to [hidden email].
> 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

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAO_wNof7FEp0qpJZ%2Bkwi_e_D3c%3D3Gk_8tD%3DwLCR1XCgU7YK90w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.