yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #23687
[Bug 1380670] Re: python-memcached misses working backend
** Project changed: keystone => python-memcached
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1380670
Title:
python-memcached misses working backend
Status in Memcached for python:
New
Bug description:
In multi-backend case there is always a chance for client to miss a
working backend among not responding.
Assuming memcached is up and running on localhost:11211:
import memcache
import random
cl = memcache.Client(['localhost:11211', 'localhost:11212', 'localhost:11213', 'localhost:11214'])
while cl.set(str(random.random()), 1): pass
'while' must be an infinite loop since cl.set() returns True on
success but it exits in milliseconds instead.
Bug may be fixed by changing backend selection logic, patch attached.
The other way is to use https://github.com/linsomniac/python-
memcached2/ as linsomniac suggested: https://github.com/linsomniac
/python-memcached/pull/57
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-memcached/+bug/1380670/+subscriptions
References