2014-10-13 15:12:34 |
Alexander Makarov |
bug |
|
|
added bug |
2014-10-13 15:12:34 |
Alexander Makarov |
attachment added |
|
MIRA0001-get_server_fix.patch https://bugs.launchpad.net/bugs/1380670/+attachment/4234454/+files/MIRA0001-get_server_fix.patch |
|
2014-10-13 15:16:07 |
Alexander Makarov |
description |
In multi-backend case there 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. |
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. |
|
2014-10-13 15:37:28 |
Alexander Makarov |
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. |
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 |
|
2014-10-13 15:53:13 |
Dolph Mathews |
affects |
keystone |
python-memcached |
|