Open GoogleCodeExporter opened 8 years ago
I did some investigation with the spymemcached source, and it revealed that the
following change can fix this issue:
location : net.spy.memcached.MemcachedConnection/attemptReconnects()
_____________________________________________________________________
Original (2.7.3):
if(ch.connect(qa.getSocketAddress())) {
getLogger().info("Immediately reconnected to %s", qa);
assert ch.isConnected();
} else {
ops=SelectionKey.OP_CONNECT;
}
Changes:
if(ch.connect(qa.getSocketAddress())) {
connected(qa);
addedQueue.offer(qa);
getLogger().info("Immediately reconnected to %s", qa);
assert ch.isConnected();
} else {
ops=SelectionKey.OP_CONNECT;
}
_____________________________________________________________________
We are introducing memcached/spymemcached in our product with the next release
and it would really help if someone from the spymemcached team can quickly
review the above changes and give comments.
Thanks,
Nitin
Original comment by emailton...@gmail.com
on 16 Dec 2011 at 2:01
Will look into this soon.
Original comment by ingen...@gmail.com
on 5 Feb 2012 at 7:48
This is a high priority issue. Reconnection failure can not be accepted in a
production environment. In which release are you planning to fix this issue?
Original comment by ilkinulas
on 5 Mar 2012 at 2:03
going to try to get this handled in 2.8.2. if you have a chance to post a code
change to our code review server (review.couchbase.org) that'd be much
appreciated.
Original comment by ingen...@gmail.com
on 22 Mar 2012 at 4:40
Nitin, Can you please post the code?
Original comment by ajayban...@gmail.com
on 23 Mar 2012 at 6:21
Is there any estimations when this could be fixed?
Original comment by jouk...@gmail.com
on 7 Aug 2012 at 12:59
I've added the recommended fix above just now:
http://review.couchbase.org/#change,19847
Should be in release 2.8.3. I don't have a specific test for it, but it
doesn't look harmful.
Original comment by ingen...@gmail.com
on 19 Aug 2012 at 9:04
Original comment by ingen...@gmail.com
on 19 Aug 2012 at 9:04
Original issue reported on code.google.com by
emailton...@gmail.com
on 16 Dec 2011 at 1:48