mgalushka / spymemcached

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

in case of "object too large for cache" error; spymemcache goes for closing and reopening memcache connection. #297

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?
2.6 , 2.10.4 (centos,fedora)

Tell me more...
spy memcache throws error "object too large for cache" in case of object size 
is large. besides, it closing and reconnects the memcache connection. which i 
guess should not be like that. 

In case of high loads, this closing and reopening connection throws Timeout 
exceptions of other async get calls.

logs :
================================================================
==note:removed original key value and used <<<<key>>> notation==
================================================================
2014-02-21 04:37:26.071 ERROR 
net.spy.memcached.protocol.ascii.StoreOperationImpl:  Error:  SERVER_ERROR 
object too large for cache
2014-02-21 04:37:26.072 INFO net.spy.memcached.MemcachedConnection:  
Reconnection due to exception handling a memcached operation on {QA 
sa=localhost/127.0.0.1:11211, #Rops=1, #Wops=1, #iq=0, topRop=Cmd: set Key: 
<<<<<<key>>>>>> Flags: 3 Exp: 1800 Data Length: 1066962, topWop=Cmd: set Key: 
<<<<<<key>>>>>> Flags: 3 Exp: 1800 Data Length: 1066962, toWrite=16384, 
interested=5}. This may be due to an authentication failure.
OperationException: SERVER: SERVER_ERROR object too large for cache
        at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:166)
        at net.spy.memcached.protocol.ascii.OperationImpl.readFromBuffer(OperationImpl.java:151)
        at net.spy.memcached.MemcachedConnection.readBufferAndLogMetrics(MemcachedConnection.java:813)
        at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:792)
        at net.spy.memcached.MemcachedConnection.handleReadsAndWrites(MemcachedConnection.java:672)
        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:635)
        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:409)
        at net.spy.memcached.MemcachedConnection.run(MemcachedConnection.java:1334)
2014-02-21 04:37:26.072 WARN net.spy.memcached.MemcachedConnection:  Closing, 
and reopening {QA sa=localhost/127.0.0.1:11211, #Rops=1, #Wops=1, #iq=0, 
topRop=Cmd: set Key: <<<<<<key>>>>>> Flags: 3 Exp: 1800 Data Length: 1066962, 
topWop=Cmd: set Key: <<<<<<key>>>>>> Flags: 3 Exp: 1800 Data Length: 1066962, 
toWrite=16384, interested=5}, attempt 0.
2014-02-21 04:37:26.072 INFO 
net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl:  No buffer for current 
write op, removing
2014-02-21 04:37:26.072 WARN 
net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl:  Discarding partially 
completed op: Cmd: set Key: <<<<<<key>>>>>> Flags: 3 Exp: 1800 Data Length: 
1066962
================================================================
================================================================

Original issue reported on code.google.com by anurag.i...@gmail.com on 21 Feb 2014 at 12:48