roc230 / spymemcached

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

Mutate operation timed out, unable to modify counter #236

Closed GoogleCodeExporter closed 9 years ago

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

version: 2.8.0

Exception in thread "pool-1-thread-40" 
net.spy.memcached.OperationTimeoutException: Mutate operation timed out, unable 
to modify counter [E50DDF994B5540718DCAD270F6D39BB9]
   at net.spy.memcached.MemcachedClient.mutate(MemcachedClient.java:1155)
   at net.spy.memcached.MemcachedClient.mutateWithDefault(MemcachedClient.java:1233)
   at net.spy.memcached.MemcachedClient.incr(MemcachedClient.java:1313)

why?

Original issue reported on code.google.com by isky...@gmail.com on 22 Feb 2012 at 2:40

GoogleCodeExporter commented 9 years ago
A timeout is when an operation takes longer to execute than the expected time.  
The default timeout is 2.5 seconds.  

It's not immediately apparent from what you show above why the timeout 
occurred.  It could be everything from a dropped connection to an exceptionally 
long garbage collection.  

In any event, it's not a bug.  Please do not use the bugtracker to further your 
understanding of the library.

Original comment by ingen...@gmail.com on 6 Mar 2012 at 11:49

GoogleCodeExporter commented 9 years ago
正常调用set方法, 都会报超时异常, 是不是很稳定哈

Original comment by isky...@gmail.com on 16 Mar 2012 at 3:21

GoogleCodeExporter commented 9 years ago
Please post in English.  Why do you call it not stable?

Original comment by ingen...@gmail.com on 16 Mar 2012 at 3:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
In my situation, I got "WARNING: Get from memcached server fail,key is xxx, 
net.spy.memcached.OperationTimeoutException: Timeout waiting for value".

The most strange thing is, it only appears when I try to get some special key.
In this case, if the key is 1,2,3...274,277,278... the "get()" operation will 
be success. but if the key is 275 or 276, the "get" operation will fail like 
above.

And more, when I use "getBulk()" method, if the key list contains 275 or 276, 
the operation will fail too.

OK,That's why I tried to "incr()", then I got "Mutate operation timed out, 
unable to modify counter [275]"

btw: the value is a single "Long" value, small enough to avoid time out.

version:2.6rc1

Original comment by watchz...@gmail.com on 4 Jan 2013 at 11:23