google-code-export / partychapp

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

Concurrency issues with PersistenceManager #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In LiveDatastore.startRequest, we just update the manager member:

http://code.google.com/p/partychapp/source/browse/trunk/src/com/imjasonh/partych
app/LiveDatastore.java#182

However, since LiveDatastore is a singleton, if we get two concurrent HTTP 
requests, one will clobber the other's manager. We should switch it to being a 
ThreadLocal.

Original issue reported on code.google.com by mihai.parparita on 27 Oct 2010 at 6:21

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r270.

Original comment by mihai.parparita on 28 Oct 2010 at 5:00