google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

Morphia does not reset last error after throwing an exception #288

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version are you using? (morphia-0.99.jar, mongo-java-driver-2.5.3.jar, 
mongodb-10gen 1.8.1) 

Problem: Under heavy load, in multithreaded environment, when duplicate-key 
errors occur, ensureIndexes() calls are failing even when index are in fact 
exists already.

Theory: This might be intrinsic mongodb problem, but it need to be confirmed as 
such.

I enclose TestNG testcase that reproduces the problem most of the time.

Original issue reported on code.google.com by Pasko.Bo...@gmail.com on 17 Jun 2011 at 7:23

Attachments: