jsxiao / spymemcached

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

BinaryMemcachedNodeImpl throws exception with simple set/get #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
OS: Linux 5.2
Server: Memcached 1.2.6 and 1.3(http://danga.com/memcached/dist/memcached-
1.3.0.tar.gz)
Client: spymemcached 2.2
JRE: Java 1.6
Memcached launch commant: /usr/local/bin/memcached -u nobody -d -p 11211

Code:
------------------------------------------------------
MemcachedClient mem = new MemcachedClient(
                new BinaryConnectionFactory(),
                AddrUtil.getAddresses("10.180.140.206:13000"));
try {
    mem.set("Luciakey", 3600, "Luciavalue");
} catch (Exception e) {
    e.printStackTrace();
}
String result = (String)mem.get(key);
System.out.println(result);
------------------------------------------------------

Exception:
------------------------------------------------------
2009-01-13 14:39:37.321 INFO net.spy.memcached.MemcachedConnection:  Added 
{QA sa=/10.194.132.206:13000, #Rops=0, #Wops=0, #iq=0, topRop=null, 
topWop=null, toWrite=0, interested=0} to connect queue
2009-01-13 14:39:37.336 INFO net.spy.memcached.MemcachedConnection:  
Connection state changed for sun.nio.ch.SelectionKeyImpl@171732b
2009-01-13 14:39:37.352 INFO net.spy.memcached.MemcachedConnection:  
Reconnecting due to exception on {QA sa=/10.194.132.206:13000, #Rops=11, 
#Wops=4, #iq=2, 
topRop=net.spy.memcached.protocol.binary.StoreOperationImpl@fa9cf, 
topWop=net.spy.memcached.protocol.binary.StoreOperationImpl@55571e, 
toWrite=0, interested=5}
java.io.IOException: An existing connection was forcibly closed by the 
remote host
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
    at sun.nio.ch.IOUtil.read(IOUtil.java:206)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
    at net.spy.memcached.MemcachedConnection.handleReads
(MemcachedConnection.java:303)
    at net.spy.memcached.MemcachedConnection.handleIO
(MemcachedConnection.java:264)
    at net.spy.memcached.MemcachedConnection.handleIO
(MemcachedConnection.java:184)
    at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1298)
2009-01-13 14:39:37.352 WARN net.spy.memcached.MemcachedConnection:  
Closing, and reopening {QA sa=/10.194.132.206:13000, #Rops=11, #Wops=4, 
#iq=36, topRop=net.spy.memcached.protocol.binary.StoreOperationImpl@fa9cf, 
topWop=net.spy.memcached.protocol.binary.StoreOperationImpl@55571e, 
toWrite=0, interested=5}, attempt 0.
2009-01-13 14:39:37.352 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@fa9cf
2009-01-13 14:39:37.352 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@18fef3d
2009-01-13 14:39:37.352 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@a3bcc1
2009-01-13 14:39:37.368 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1bd4722
2009-01-13 14:39:37.368 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1891d8f
2009-01-13 14:39:37.368 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@f3d6a5
2009-01-13 14:39:37.368 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@911f71
2009-01-13 14:39:37.368 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1a73d3c
2009-01-13 14:39:37.368 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@a56a7c
2009-01-13 14:39:37.368 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1f20eeb
2009-01-13 14:39:37.368 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@b179c3
2009-01-13 14:39:37.461 INFO net.spy.memcached.MemcachedConnection:  
Reconnecting {QA sa=/10.194.132.206:13000, #Rops=0, #Wops=40, #iq=0, 
topRop=null, 
topWop=net.spy.memcached.protocol.binary.StoreOperationImpl@55571e, 
toWrite=0, interested=0}
2009-01-13 14:39:37.461 INFO net.spy.memcached.MemcachedConnection:  
Connection state changed for sun.nio.ch.SelectionKeyImpl@e2eec8
2009-01-13 14:39:37.461 INFO net.spy.memcached.MemcachedConnection:  
Reconnecting due to exception on {QA sa=/10.194.132.206:13000, #Rops=40, 
#Wops=0, #iq=0, 
topRop=net.spy.memcached.protocol.binary.StoreOperationImpl@55571e, 
topWop=null, toWrite=0, interested=1}
java.io.IOException: An existing connection was forcibly closed by the 
remote host
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
    at sun.nio.ch.IOUtil.read(IOUtil.java:206)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
    at net.spy.memcached.MemcachedConnection.handleReads
(MemcachedConnection.java:303)
    at net.spy.memcached.MemcachedConnection.handleIO
(MemcachedConnection.java:264)
    at net.spy.memcached.MemcachedConnection.handleIO
(MemcachedConnection.java:184)
    at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1298)
2009-01-13 14:39:37.461 WARN net.spy.memcached.MemcachedConnection:  
Closing, and reopening {QA sa=/10.194.132.206:13000, #Rops=40, #Wops=0, 
#iq=0, topRop=net.spy.memcached.protocol.binary.StoreOperationImpl@55571e, 
topWop=null, toWrite=0, interested=1}, attempt 0.
2009-01-13 14:39:37.461 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@55571e
2009-01-13 14:39:37.461 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@aa9835
2009-01-13 14:39:37.461 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1eec612
2009-01-13 14:39:37.461 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@10dd1f7
2009-01-13 14:39:37.461 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@53c015
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@67ac19
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@53ba3d
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@e80a59
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1ff5ea7
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@9f2a0b
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1813fac
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@7b7072
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@136228
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@913750
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1c672d0
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@19bd03e
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@84abc9
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@2a340e
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@bfbdb0
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@3e86d0
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1050169
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@19fcc69
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@253498
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@9fef6f
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@209f4e
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1bac748
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@17172ea
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@12f6684
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@f38798
2009-01-13 14:39:37.477 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@4b222f
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@b169f8
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@929206
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@b0f13d
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@ae000d
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@1855af5
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@169e11
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@e39a3e
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@a39137
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.StoreOperationImpl@92e78c
2009-01-13 14:39:37.493 WARN 
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding 
partially completed op: 
net.spy.memcached.protocol.binary.GetOperationImpl@9fbe93
Exception in thread "main" java.lang.RuntimeException: Exception waiting 
for value
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:763)
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:778)
    at trail.main(trail.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main
(AppMain.java:90)
Caused by: java.util.concurrent.ExecutionException: 
java.lang.RuntimeException: Cancelled
    at net.spy.memcached.MemcachedClient$OperationFuture.get
(MemcachedClient.java:1493)
    at net.spy.memcached.MemcachedClient$GetFuture.get
(MemcachedClient.java:1539)
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:758)
    ... 7 more
Caused by: java.lang.RuntimeException: Cancelled
    ... 10 more
2009-01-13 14:39:37.571 INFO net.spy.memcached.MemcachedConnection:  
Reconnecting {QA sa=/10.194.132.206:13000, #Rops=0, #Wops=0, #iq=0, 
topRop=null, topWop=null, toWrite=0, interested=0}
2009-01-13 14:39:37.571 INFO net.spy.memcached.MemcachedConnection:  
Connection state changed for sun.nio.ch.SelectionKeyImpl@1858610

Original issue reported on code.google.com by peng.le...@gmail.com on 13 Jan 2009 at 6:53

GoogleCodeExporter commented 8 years ago
This version of the server needs to be pulled as it doesn't implement the latest
binary protocol properly.

Original comment by dsalli...@gmail.com on 15 Jan 2009 at 5:35