zzyugl / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
0 stars 0 forks source link

It's possible to dynamically add a server that doesn't respond causing issues immediately #293

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Start application with 1+ healthy memcached server(s) registered
2.Xmemcached works well
3.Execute addServer with at least one memcached server that doesn't respond 
4.There's no verification the new memcached server is up and running so when a 
key is supposed to go to this server it always throws exceptions

What is the expected output? What do you see instead?
Before adding a new server dynamically check it actually responds. It could be 
that the location of the Memcached is wrong so there's no point on adding it 
just to fail. I know there's no assurance that after checking for the server 
being there the server could immediately fail between checking and adding but 
at least this makes up for the case where the users may have a typo in their 
server name or port.

What version of the product are you using? On what operating system?
2.0.0
Ubuntu 12.04.5 LTS

Please provide any additional information below.

Original issue reported on code.google.com by claudio....@gmail.com on 25 Sep 2014 at 5:51