slimina / spymemcached

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

There is no heartbeats on idle connection #287

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?

2.9.1, Linux

Steps to reproduce:
1. Connect to mecached server using spymemcached.
2. Perform some memcached operations.
3. Restart the memcached server.
4. Spymemcached does not notice anything (at least for minutes)
5. Perform a memcached operation.
6. Spymemcached finds that old connection is broken and throws an exception in 
OperationFuture

Proposed solution:
Implement heartbeats on idle connection like xmemcached does.

Original issue reported on code.google.com by serge.gr...@gmail.com on 21 Oct 2013 at 11:52

GoogleCodeExporter commented 9 years ago
a heartbeat won't help you that much over our current approach I don't think.  
still, we can consider this

Original comment by ingen...@gmail.com on 7 Nov 2013 at 9:44

GoogleCodeExporter commented 9 years ago
Heartbeats seem to be the only way to detect host power failure or something 
like that.

For restarted or crashed memcached process, TCP connection provides EOF that 
can be select()'ed.

Original comment by serge.gr...@gmail.com on 7 Nov 2013 at 9:58