Closed GoogleCodeExporter closed 9 years ago
The current implementation is using thread lock.
It means there is no problem when the same PB server handles whole datastore
requests, but if there are multiple PB server (currently cassandra and
voldemort), it
should be the problem.
We must use another locking mechanism like ZooKeeper, or optimistic way.
Original comment by yoshi...@gmail.com
on 15 Apr 2010 at 7:43
Would like to instead use memcached to store the lock on the meta-key.
Original comment by shattere...@gmail.com
on 3 May 2010 at 8:11
I implemented a mutex class which provides a distributed lock using memcached.
The
code has been checked into the unstable branch under AppDB/memcache_mutex.py.
Original comment by jmkupfer...@gmail.com
on 3 May 2010 at 10:56
I changed dhash_datastore to use memcache_mutex and confirmed working correctly
with
multi thread datastore test.
Original comment by yoshi...@gmail.com
on 6 May 2010 at 12:29
Original issue reported on code.google.com by
jmkupfer...@gmail.com
on 9 Apr 2010 at 5:05