[elephant-devel] Dropping DB connection during writes

Alex Mizrahi killerstorm at newmail.ru
Fri Nov 21 10:49:14 UTC 2008


 IE> with-open-store closes the store when you're done, null'ing out *store-
 IE> controller*.  With sufficient concurrency you are likely to get a race
 IE> condition where the if stmt in with-city-store succeeds but the body
 IE> fails since you aren't locking access to *store-controller*.

well, it seems the root cause of the problem is that open-store uses
cached controller instance, so multiple threads will share same instance,
and when one closes it others get botched.

maybe it makes sense to do some changes to prevent this. like, do no
caching? 







More information about the elephant-devel mailing list