stevenkang / spymemcached

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

Illegal state after 10 hours of operation #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We run a chat server that needs to invalidate entries in our memcache cluster 
about 1500 times an hour. We are using version 2.5 on Ubuntu Hardy Heron. We 
are using memcached version 1.2.2

After about ten hours of operation, a quarter of our calls to delete result in 
an illegal state exception.

What an I do about this? The code currently does not call flush at all. Would 
that help? We get a very bad outcome (long delays) if we attempt to call flush 
after each call to delete.

Original issue reported on code.google.com by gle...@zoosk.com on 20 Apr 2011 at 8:13

GoogleCodeExporter commented 9 years ago
You should not run memcached 1.2.2 anywhere ever.

Original comment by dsalli...@gmail.com on 20 Apr 2011 at 8:16

GoogleCodeExporter commented 9 years ago
agreed with Dustin on this, but willing to look at it if you can provide some 
more info.  Can you supply a packet capture or something that shows what is 
sent back from memcached in one of these illegal state exception cases?  It'd 
also be good to see a stack trace.

Original comment by ingen...@gmail.com on 4 May 2011 at 10:49

GoogleCodeExporter commented 9 years ago
2011-04-20 07:23:35  OnlineStateManager.processPacket()  SEVERE:  Cannot 
invalidate memcache for user: 62308902java.lang.IllegalStateException: Timed 
out waiting to add 
net.spy.memcached.protocol.binary.DeleteOperationImpl@7d9231ba(max wait=10000ms)
        at net.spy.memcached.protocol.TCPMemcachedNodeImpl.addOp(TCPMemcachedNodeImpl.java:273)        at net.spy.memcached.MemcachedConnection.addOperation(MemcachedConnection.java:602)        at net.spy.memcached.MemcachedConnection.addOperation(MemcachedConnection.java:582)
        at net.spy.memcached.MemcachedClient.addOp(MemcachedClient.java:277)
        at net.spy.memcached.MemcachedClient.delete(MemcachedClient.java:1476)        at com.zoosk.components.OnlineStateManager.processPacket(OnlineStateManager.java:152)        at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1173)

Original comment by gle...@zoosk.com on 5 May 2011 at 12:16