Skip to content
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

Cleanup database on OConcurrentModificationException [moved] #278

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

Cleanup database on OConcurrentModificationException [moved] #278

lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 278 moved from a Google Code project.
Added by 2011-03-23T20:27:53.000Z by sylvain....@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, v1.0rc1

Original description

If a OConcurrentModificationException is thrown in a commit() call,
the database become in a bad state.

First, the database cache is not reseted: if I try to re-execute the
code and load the record again, the database give me back the old out
of synch record. Note really useful ;)

Second, the optimistic transaction is not killed, but not usable
anymore (old transactions entries always present). So I call
explicitly the rollback() method;

Here is a patch proposal, but I'm not sure it's the best solution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant