Closed icexelloss closed 9 years ago
twemproxy only supports ascii memcache protocol. you need to configure your client library to use ascii protocol
Thanks for the quick reply. It does look like spymemcached is using asii already:
2015-03-12 16:12:38.761 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: Cmd: get Keys: key1Exp: 0
Exception in thread "main" java.util.concurrent.CancellationException: Cancelled
at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:177)
at net.spy.memcached.internal.GetFuture.get(GetFuture.java:69)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1230)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1257)
at com.twosigma.accelfs.Test.main(Test.java:50)
Nvm. It turns out to be a configuration mistake on my side. Sorry guys.
@icexelloss can you explain what was the configuration mistake ? I am also getting same error
Hi,
I am trying to connect to twemproxy using spymemcached, but there is some issue, here is the log from my test program:
Here is the example code:
Can someone shed some light on this? Should I use another java memcached library?
Version: spymemcached 2.11.5 twemproxy 0.4.0