Hello,

I'm new to memcached and I want to test the binary protocol in
spymemcached 2.2 and memcached 1.3.0.The test enviroment gose well
when not using binary connection but failed when I use:
"mCache = new MemcachedClient(new BinaryConnectionFactory
(),AddrUtil.getAddresses(server+":"+port));"

The exception occurs when call the set fuction of MemcachedClient.
-----------------------------------------------------------------------------------------------------------------
INFO net.spy.memcached.MemcachedConnection:  Reconnecting due to
exception on {QA sa=/10.194.132.206:13000, #Rops=1, #Wops=0, #iq=0,
toprop=net.spy.memcached.protocol.binary.storeoperationi...@1d95da8,
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(Unknown Source)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
        at sun.nio.ch.IOUtil.read(Unknown Source)
        at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
        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 17:14:32.694 WARN net.spy.memcached.MemcachedConnection:
Closing, and reopening {QA sa=/10.194.132.206:13000, #Rops=1, #Wops=0,
#iq=0,
toprop=net.spy.memcached.protocol.binary.storeoperationi...@1d95da8,
topWop=null, toWrite=0, interested=1}, attempt 0.
2009-01-13 17:14:32.694 WARN
net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding
partially completed op:
net.spy.memcached.protocol.binary.storeoperationi...@1d95da8
--------------------------------------------------------------------------------------------------------------

And I've tried memcached 1.2.6 but seems no better then 1.3.0.
Anyone met this issue before? I doubt  on client API and memcached
instance either, but no idea how to find the root cause. Thanks for
any clue!

Lucia

Reply via email to